OSDN Git Service

NFSD: Pass the target nfsd_file to nfsd_commit()
authorChuck Lever <chuck.lever@oracle.com>
Fri, 28 Oct 2022 14:46:38 +0000 (10:46 -0400)
committerChuck Lever <chuck.lever@oracle.com>
Mon, 28 Nov 2022 17:54:45 +0000 (12:54 -0500)
commitc252849082ff525af18b4f253b3c9ece94e951ed
tree1562c6039be79ef305c921a16cb4672b03aaf594
parente0aa651068bfd520afcd357af8ecd2de005fc83d
NFSD: Pass the target nfsd_file to nfsd_commit()

In a moment I'm going to introduce separate nfsd_file types, one of
which is garbage-collected; the other, not. The garbage-collected
variety is to be used by NFSv2 and v3, and the non-garbage-collected
variety is to be used by NFSv4.

nfsd_commit() is invoked by both NFSv3 and NFSv4 consumers. We want
nfsd_commit() to find and use the correct variety of cached
nfsd_file object for the NFS version that is in use.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Tested-by: Jeff Layton <jlayton@kernel.org>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Reviewed-by: NeilBrown <neilb@suse.de>
fs/nfsd/nfs3proc.c
fs/nfsd/nfs4proc.c
fs/nfsd/vfs.c
fs/nfsd/vfs.h