Commit fc1abdc
Al Viro
rpc_pipe: saner primitive for creating subdirectories
All users of __rpc_mkdir() have the same form - start_creating(),
followed, in case of success, by __rpc_mkdir() and unlocking parent.
Combine that into a single helper, expanding __rpc_mkdir() into it,
along with the call of __rpc_create_common() in it.
Don't mess with d_drop() + d_add() - just d_instantiate() and be
done with that. The reason __rpc_create_common() goes for that
dance is that dentry it gets might or might not be hashed; here
we know it's hashed.
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>1 parent 41a6b9e commit fc1abdc
1 file changed
Lines changed: 39 additions & 28 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
524 | 524 | | |
525 | 525 | | |
526 | 526 | | |
527 | | - | |
528 | | - | |
529 | | - | |
530 | | - | |
531 | | - | |
532 | | - | |
533 | | - | |
534 | | - | |
535 | | - | |
536 | | - | |
537 | | - | |
538 | | - | |
539 | | - | |
540 | | - | |
541 | | - | |
542 | 527 | | |
543 | 528 | | |
544 | 529 | | |
| |||
594 | 579 | | |
595 | 580 | | |
596 | 581 | | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
597 | 611 | | |
598 | 612 | | |
599 | 613 | | |
| |||
604 | 618 | | |
605 | 619 | | |
606 | 620 | | |
607 | | - | |
608 | | - | |
609 | | - | |
610 | | - | |
611 | 621 | | |
612 | 622 | | |
613 | 623 | | |
614 | 624 | | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
615 | 629 | | |
616 | 630 | | |
617 | 631 | | |
618 | 632 | | |
619 | 633 | | |
620 | 634 | | |
621 | 635 | | |
622 | | - | |
| 636 | + | |
| 637 | + | |
623 | 638 | | |
624 | | - | |
625 | 639 | | |
626 | | - | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
627 | 643 | | |
628 | 644 | | |
629 | 645 | | |
| |||
640 | 656 | | |
641 | 657 | | |
642 | 658 | | |
643 | | - | |
644 | 659 | | |
645 | 660 | | |
646 | | - | |
| 661 | + | |
647 | 662 | | |
648 | 663 | | |
649 | | - | |
650 | | - | |
651 | | - | |
652 | | - | |
653 | 664 | | |
654 | 665 | | |
655 | 666 | | |
| |||
0 commit comments