]> www.infradead.org Git - users/jedix/linux-maple.git/commit
nfsd: drop inode parameter from nfsd4_change_attribute()
authorJeff Layton <jlayton@kernel.org>
Mon, 11 Nov 2024 16:01:13 +0000 (11:01 -0500)
committerChuck Lever <chuck.lever@oracle.com>
Mon, 11 Nov 2024 18:42:06 +0000 (13:42 -0500)
commitf67eef8da0e8c54709fefdecd16ad8d70f0c9d20
tree21d3b53512b66c6627c2183ae3042478509ca10d
parentac159338d53b8846b020be8260884e8234572a70
nfsd: drop inode parameter from nfsd4_change_attribute()

The inode that nfs4_open_delegation() passes to this function is
wrong, which throws off the result. The inode will end up getting a
directory-style change attr instead of a regular-file-style one.

Fix up nfs4_delegation_stat() to fetch STATX_MODE, and then drop the
inode parameter from nfsd4_change_attribute(), since it's no longer
needed.

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
fs/nfsd/nfs4xdr.c
fs/nfsd/nfsfh.c
fs/nfsd/nfsfh.h