]> git.dujemihanovic.xyz Git - linux.git/commit
nfsd: fix initial getattr on write delegation
authorJeff Layton <jlayton@kernel.org>
Mon, 9 Sep 2024 14:40:53 +0000 (10:40 -0400)
committerChuck Lever <chuck.lever@oracle.com>
Fri, 20 Sep 2024 23:31:37 +0000 (19:31 -0400)
commitbf92e5008b17f935a6de8b708551e02c2294121c
tree72669af32145053b3f1b306d98a5259ef26d1ee3
parenta078a7dc0eaa9db288ae45319f7f7503968af546
nfsd: fix initial getattr on write delegation

At this point in compound processing, currentfh refers to the parent of
the file, not the file itself. Get the correct dentry from the delegation
stateid instead.

Fixes: c5967721e106 ("NFSD: handle GETATTR conflict with write delegation")
Signed-off-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
fs/nfsd/nfs4state.c