nfsd: have nfsd4_deleg_getattr_conflict pass back write deleg pointer
authorJeff Layton <jlayton@kernel.org>
Fri, 4 Oct 2024 13:16:46 +0000 (09:16 -0400)
committerChuck Lever <chuck.lever@oracle.com>
Mon, 11 Nov 2024 18:42:07 +0000 (13:42 -0500)
commitf6259e2e4f64a1780b285037dbd4f947121ae8fd
tree569c2ac9c46ae259e15201d225582554354e983d
parent3a405432e7cd84f5e137928ce383aa85a54fb3a6
nfsd: have nfsd4_deleg_getattr_conflict pass back write deleg pointer

Currently we pass back the size and whether it has been modified, but
those just mirror values tracked inside the delegation. In a later
patch, we'll need to get at the timestamps in the delegation too, so
just pass back a reference to the write delegation, and use that to
properly override values in the iattr.

Signed-off-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
fs/nfsd/nfs4state.c
fs/nfsd/nfs4xdr.c
fs/nfsd/state.h