Commit 8290fb4
ovl: narrow locking in ovl_cleanup_index()
ovl_cleanup_index() takes a lock on the directory and then does a lookup
and possibly one of two different cleanups.
This patch narrows the locking to use the _unlocked() versions of the
lookup and one cleanup, and just takes the lock for the other cleanup.
A subsequent patch will take the lock into the cleanup.
Signed-off-by: NeilBrown <neil@brown.name>
Link: https://lore.kernel.org/20250716004725.1206467-12-neil@brown.name
Reviewed-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Christian Brauner <brauner@kernel.org>1 parent 7dfb072 commit 8290fb4
1 file changed
Lines changed: 8 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1078 | 1078 | | |
1079 | 1079 | | |
1080 | 1080 | | |
1081 | | - | |
1082 | 1081 | | |
1083 | 1082 | | |
1084 | 1083 | | |
| |||
1114 | 1113 | | |
1115 | 1114 | | |
1116 | 1115 | | |
1117 | | - | |
1118 | | - | |
| 1116 | + | |
1119 | 1117 | | |
1120 | 1118 | | |
1121 | 1119 | | |
1122 | 1120 | | |
1123 | 1121 | | |
1124 | | - | |
1125 | | - | |
| 1122 | + | |
| 1123 | + | |
| 1124 | + | |
| 1125 | + | |
| 1126 | + | |
| 1127 | + | |
1126 | 1128 | | |
1127 | 1129 | | |
1128 | | - | |
| 1130 | + | |
1129 | 1131 | | |
1130 | | - | |
1131 | | - | |
1132 | 1132 | | |
1133 | 1133 | | |
1134 | 1134 | | |
| |||
0 commit comments