Commit 1ead221
smb/server: use end_removing_noperm for for target of smb2_create_link()
Sometimes smb2_create_link() needs to remove the target before creating
the link.
It uses ksmbd_vfs_kern_locked(), and is the only user of that interface.
To match the new naming, that function is changed to
ksmbd_vfs_kern_start_removing(), and related functions or flags are also
renamed.
The lock actually happens in ksmbd_vfs_path_lookup() and that is changed
to use start_removing_noperm() - permission to perform lookup in the
parent was already checked in vfs_path_parent_lookup().
Signed-off-by: NeilBrown <neil@brown.name>
Link: https://patch.msgid.link/20251113002050.676694-8-neilb@ownmail.net
Signed-off-by: Christian Brauner <brauner@kernel.org>1 parent c9ba789 commit 1ead221
3 files changed
Lines changed: 19 additions & 22 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6084 | 6084 | | |
6085 | 6085 | | |
6086 | 6086 | | |
6087 | | - | |
6088 | | - | |
| 6087 | + | |
| 6088 | + | |
6089 | 6089 | | |
6090 | 6090 | | |
6091 | 6091 | | |
| |||
6103 | 6103 | | |
6104 | 6104 | | |
6105 | 6105 | | |
6106 | | - | |
| 6106 | + | |
6107 | 6107 | | |
6108 | 6108 | | |
6109 | 6109 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
72 | | - | |
| 72 | + | |
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
| |||
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
102 | | - | |
| 102 | + | |
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
109 | | - | |
110 | | - | |
| 109 | + | |
111 | 110 | | |
112 | 111 | | |
113 | 112 | | |
114 | 113 | | |
115 | 114 | | |
116 | 115 | | |
117 | | - | |
118 | 116 | | |
119 | 117 | | |
120 | 118 | | |
| |||
1207 | 1205 | | |
1208 | 1206 | | |
1209 | 1207 | | |
1210 | | - | |
| 1208 | + | |
1211 | 1209 | | |
1212 | 1210 | | |
1213 | 1211 | | |
1214 | 1212 | | |
1215 | 1213 | | |
1216 | 1214 | | |
1217 | 1215 | | |
1218 | | - | |
| 1216 | + | |
1219 | 1217 | | |
1220 | 1218 | | |
1221 | 1219 | | |
| |||
1286 | 1284 | | |
1287 | 1285 | | |
1288 | 1286 | | |
1289 | | - | |
| 1287 | + | |
1290 | 1288 | | |
1291 | 1289 | | |
1292 | 1290 | | |
| |||
1298 | 1296 | | |
1299 | 1297 | | |
1300 | 1298 | | |
1301 | | - | |
1302 | | - | |
1303 | | - | |
| 1299 | + | |
| 1300 | + | |
| 1301 | + | |
1304 | 1302 | | |
1305 | 1303 | | |
1306 | 1304 | | |
1307 | 1305 | | |
1308 | 1306 | | |
1309 | | - | |
| 1307 | + | |
1310 | 1308 | | |
1311 | | - | |
1312 | | - | |
| 1309 | + | |
1313 | 1310 | | |
1314 | | - | |
| 1311 | + | |
1315 | 1312 | | |
1316 | 1313 | | |
1317 | 1314 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
127 | 127 | | |
128 | 128 | | |
129 | 129 | | |
| |||
0 commit comments