Commit c69566b
ovl: narrow locking on ovl_remove_and_whiteout()
This code:
performs a lookup_upper
creates a whiteout object
renames the whiteout over the result of the lookup
The create and the rename must be locked separately for proposed
directory locking changes. This patch takes a first step of moving the
lookup out of the locked region. A subsequent patch will separate the
create from the rename.
Signed-off-by: NeilBrown <neil@brown.name>
Link: https://lore.kernel.org/20250716004725.1206467-17-neil@brown.name
Reviewed-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Christian Brauner <brauner@kernel.org>1 parent 241062a commit c69566b
1 file changed
Lines changed: 10 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
770 | 770 | | |
771 | 771 | | |
772 | 772 | | |
773 | | - | |
774 | | - | |
775 | | - | |
776 | | - | |
777 | | - | |
778 | | - | |
| 773 | + | |
| 774 | + | |
779 | 775 | | |
780 | 776 | | |
781 | | - | |
| 777 | + | |
782 | 778 | | |
783 | 779 | | |
784 | 780 | | |
| |||
787 | 783 | | |
788 | 784 | | |
789 | 785 | | |
790 | | - | |
| 786 | + | |
791 | 787 | | |
792 | | - | |
| 788 | + | |
| 789 | + | |
| 790 | + | |
| 791 | + | |
| 792 | + | |
793 | 793 | | |
794 | | - | |
795 | | - | |
796 | 794 | | |
| 795 | + | |
797 | 796 | | |
798 | 797 | | |
799 | | - | |
800 | | - | |
801 | 798 | | |
802 | 799 | | |
803 | 800 | | |
| |||
0 commit comments