]> git.dujemihanovic.xyz Git - linux.git/commit
nfsd: further centralize protocol version checks.
authorNeilBrown <neilb@suse.de>
Fri, 26 Jul 2024 02:21:34 +0000 (12:21 +1000)
committerChuck Lever <chuck.lever@oracle.com>
Fri, 20 Sep 2024 23:31:03 +0000 (19:31 -0400)
commitc689bdd3bffad887207bc5b36abdc0efeb2e54d5
tree2f4deac8306e8353782339931203cdb8f57c5626
parent4f67d24f723b27ed50962db32718d180d0e869da
nfsd: further centralize protocol version checks.

With this patch the only places that test ->rq_vers against a specific
version are nfsd_v4client() and nfsd_set_fh_dentry().
The latter sets some flags in the svc_fh, which now includes:
  fh_64bit_cookies
  fh_use_wgather

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