]> Gentwo Git Trees - linux/.git/commit
nfsd: move name lookup out of nfsd4_list_rec_dir()
authorNeilBrown <neilb@ownmail.net>
Mon, 15 Sep 2025 02:55:13 +0000 (12:55 +1000)
committerChuck Lever <chuck.lever@oracle.com>
Sun, 16 Nov 2025 23:20:11 +0000 (18:20 -0500)
commit89bd77cf436bf25e448817a662ebf76515f22863
tree6fe02427ab2d8da10eee5e3c22488ea26d1029ac
parentbf94dea7fd4e6708d1a784be23db65eff84d82f1
nfsd: move name lookup out of nfsd4_list_rec_dir()

nfsd4_list_rec_dir() is called with two different callbacks.
One of the callbacks uses vfs_rmdir() to remove the directory.
The other doesn't use the dentry at all, just the name.

As only one callback needs the dentry, this patch moves the lookup into
that callback.  This prepares of changes to how directory operations
are locked.

Signed-off-by: NeilBrown <neil@brown.name>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
fs/nfsd/nfs4recover.c