Commit b7a1470
Al Viro
switch nfsd_client_rmdir() to use of simple_recursive_removal()
nfsd_client_rmdir() open-codes a subset of simple_recursive_removal().
Conversion to calling simple_recursive_removal() allows to clean things
up quite a bit.
While we are at it, nfsdfs_create_files() doesn't need to mess with "pick
the reference to struct nfsdfs_client from the already created parent" -
the caller already knows it (that's where the parent got it from,
after all), so we might as well just pass it as an explicit argument.
So __get_nfsdfs_client() is only needed in get_nfsdfs_client() and
can be folded in there.
Incidentally, the locking in get_nfsdfs_client() is too heavy - we don't
need ->i_rwsem for that, ->i_lock serves just fine.
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Tested-by: Jeff Layton <jlayton@kernel.org>
Acked-by: Chuck Lever <chuck.lever@oracle.com>
Acked-by: Christian Brauner <brauner@kernel.org>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>1 parent b85ea95 commit b7a1470
1 file changed
Lines changed: 14 additions & 56 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1236 | 1236 | | |
1237 | 1237 | | |
1238 | 1238 | | |
1239 | | - | |
| 1239 | + | |
1240 | 1240 | | |
| 1241 | + | |
1241 | 1242 | | |
1242 | 1243 | | |
| 1244 | + | |
1243 | 1245 | | |
| 1246 | + | |
1244 | 1247 | | |
1245 | 1248 | | |
1246 | 1249 | | |
1247 | | - | |
1248 | | - | |
1249 | | - | |
1250 | | - | |
1251 | | - | |
1252 | | - | |
1253 | | - | |
1254 | | - | |
1255 | | - | |
1256 | 1250 | | |
1257 | 1251 | | |
1258 | 1252 | | |
1259 | 1253 | | |
1260 | | - | |
1261 | | - | |
1262 | | - | |
| 1254 | + | |
| 1255 | + | |
| 1256 | + | |
| 1257 | + | |
| 1258 | + | |
1263 | 1259 | | |
1264 | 1260 | | |
1265 | | - | |
1266 | | - | |
1267 | | - | |
1268 | | - | |
1269 | | - | |
1270 | | - | |
1271 | | - | |
1272 | | - | |
1273 | | - | |
1274 | | - | |
1275 | | - | |
1276 | | - | |
1277 | | - | |
1278 | | - | |
1279 | | - | |
1280 | | - | |
1281 | | - | |
1282 | | - | |
1283 | | - | |
1284 | | - | |
1285 | | - | |
1286 | | - | |
1287 | | - | |
1288 | | - | |
1289 | | - | |
1290 | | - | |
1291 | 1261 | | |
1292 | 1262 | | |
1293 | 1263 | | |
1294 | 1264 | | |
1295 | 1265 | | |
| 1266 | + | |
1296 | 1267 | | |
1297 | 1268 | | |
1298 | 1269 | | |
| |||
1311 | 1282 | | |
1312 | 1283 | | |
1313 | 1284 | | |
| 1285 | + | |
1314 | 1286 | | |
1315 | | - | |
| 1287 | + | |
1316 | 1288 | | |
1317 | 1289 | | |
1318 | 1290 | | |
| |||
1321 | 1293 | | |
1322 | 1294 | | |
1323 | 1295 | | |
1324 | | - | |
1325 | 1296 | | |
1326 | 1297 | | |
1327 | 1298 | | |
| |||
1341 | 1312 | | |
1342 | 1313 | | |
1343 | 1314 | | |
1344 | | - | |
| 1315 | + | |
1345 | 1316 | | |
1346 | 1317 | | |
1347 | 1318 | | |
| |||
1352 | 1323 | | |
1353 | 1324 | | |
1354 | 1325 | | |
1355 | | - | |
1356 | | - | |
1357 | | - | |
1358 | | - | |
1359 | | - | |
1360 | | - | |
1361 | | - | |
1362 | | - | |
1363 | | - | |
1364 | | - | |
1365 | | - | |
1366 | | - | |
1367 | | - | |
1368 | | - | |
| 1326 | + | |
1369 | 1327 | | |
1370 | 1328 | | |
1371 | 1329 | | |
| |||
0 commit comments