Al Viro b7a14708aa 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>
2023-11-18 17:48:13 -05:00
..
2023-08-29 17:45:22 -04:00
2023-11-07 12:11:26 -08:00
2023-03-10 09:38:47 -05:00
2021-10-02 15:51:10 -04:00
2023-10-16 12:44:09 -04:00
2023-10-16 12:44:09 -04:00
2023-10-16 12:44:09 -04:00
2023-02-22 14:21:40 -08:00
2023-02-22 14:21:40 -08:00
2023-10-30 10:12:29 -10:00
2023-10-30 10:12:29 -10:00
2023-10-16 12:44:37 -04:00
2023-10-16 12:44:09 -04:00
2023-10-16 12:44:14 -04:00
2023-10-16 12:44:14 -04:00
2023-10-16 12:44:09 -04:00
2023-10-30 10:12:29 -10:00