Repository navigation
Commit 76fa666
rpc_pipe: set dentry operations at d_alloc time
Currently the way these get set is a little convoluted. If the dentry is
allocated via lookup from userland, then it gets set by simple_lookup.
If it gets allocated when the kernel is populating the directory, then
it gets set via __rpc_lookup_create_exclusive, which has to check
whether they might already be set. Between both of these, this ensures
that all dentries have their d_op pointer set.
Instead of doing that, just have them set at d_alloc time by pointing
sb->s_d_op at them. With that change, we no longer want the lookup op
to set them, so we must move to using our own lookup routine.
Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>1 parent cda57a1 commit 76fa666
1 file changed
Lines changed: 20 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
480 | 480 | | |
481 | 481 | | |
482 | 482 | | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
483 | 500 | | |
484 | 501 | | |
485 | 502 | | |
| |||
492 | 509 | | |
493 | 510 | | |
494 | 511 | | |
495 | | - | |
| 512 | + | |
496 | 513 | | |
497 | 514 | | |
498 | 515 | | |
| |||
666 | 683 | | |
667 | 684 | | |
668 | 685 | | |
669 | | - | |
670 | | - | |
671 | | - | |
| 686 | + | |
672 | 687 | | |
673 | | - | |
674 | 688 | | |
675 | 689 | | |
676 | 690 | | |
| |||
1117 | 1131 | | |
1118 | 1132 | | |
1119 | 1133 | | |
| 1134 | + | |
1120 | 1135 | | |
1121 | 1136 | | |
1122 | 1137 | | |
| |||
0 commit comments