diff options
author | Chuck Lever <chuck.lever@oracle.com> | 2022-10-28 16:46:38 +0200 |
---|---|---|
committer | Chuck Lever <chuck.lever@oracle.com> | 2022-11-28 18:54:45 +0100 |
commit | c252849082ff525af18b4f253b3c9ece94e951ed (patch) | |
tree | 1562c6039be79ef305c921a16cb4672b03aaf594 /fs/nfsd/vfs.h | |
parent | nfsd: don't call nfsd_file_put from client states seqfile display (diff) | |
download | linux-c252849082ff525af18b4f253b3c9ece94e951ed.tar.xz linux-c252849082ff525af18b4f253b3c9ece94e951ed.zip |
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>
Diffstat (limited to '')
-rw-r--r-- | fs/nfsd/vfs.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/nfsd/vfs.h b/fs/nfsd/vfs.h index 8ddd687f8359..dbdfef7ae85b 100644 --- a/fs/nfsd/vfs.h +++ b/fs/nfsd/vfs.h @@ -89,7 +89,8 @@ __be32 nfsd_access(struct svc_rqst *, struct svc_fh *, u32 *, u32 *); __be32 nfsd_create_setattr(struct svc_rqst *rqstp, struct svc_fh *fhp, struct svc_fh *resfhp, struct nfsd_attrs *iap); __be32 nfsd_commit(struct svc_rqst *rqst, struct svc_fh *fhp, - u64 offset, u32 count, __be32 *verf); + struct nfsd_file *nf, u64 offset, u32 count, + __be32 *verf); #ifdef CONFIG_NFSD_V4 __be32 nfsd_getxattr(struct svc_rqst *rqstp, struct svc_fh *fhp, char *name, void **bufp, int *lenp); |