Commit 7dfb072
ovl: narrow locking in ovl_cleanup_whiteouts()
Rather than lock the directory for the whole operation, use
ovl_lookup_upper_unlocked() and ovl_cleanup_unlocked() to take the lock
only when needed.
This makes way for future changes where locks are taken on individual
dentries rather than the whole directory.
Reviewed-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: NeilBrown <neil@brown.name>
Link: https://lore.kernel.org/20250716004725.1206467-11-neil@brown.name
Signed-off-by: Christian Brauner <brauner@kernel.org>1 parent 0546849 commit 7dfb072
1 file changed
Lines changed: 2 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1034 | 1034 | | |
1035 | 1035 | | |
1036 | 1036 | | |
1037 | | - | |
1038 | 1037 | | |
1039 | 1038 | | |
1040 | 1039 | | |
1041 | 1040 | | |
1042 | 1041 | | |
1043 | 1042 | | |
1044 | | - | |
| 1043 | + | |
1045 | 1044 | | |
1046 | 1045 | | |
1047 | 1046 | | |
1048 | 1047 | | |
1049 | 1048 | | |
1050 | 1049 | | |
1051 | 1050 | | |
1052 | | - | |
| 1051 | + | |
1053 | 1052 | | |
1054 | 1053 | | |
1055 | | - | |
1056 | 1054 | | |
1057 | 1055 | | |
1058 | 1056 | | |
| |||
0 commit comments