]> Git Repo - linux.git/commit
nfsd4: don't query change attribute in v2/v3 case
authorJ. Bruce Fields <[email protected]>
Mon, 30 Nov 2020 22:46:17 +0000 (17:46 -0500)
committerChuck Lever <[email protected]>
Wed, 9 Dec 2020 14:39:38 +0000 (09:39 -0500)
commit942b20dc245590327ee0187c15c78174cd96dd52
tree8db4fedecaf450af847ff1930ee55cb876e33a3c
parent4b03d99794eeed27650597a886247c6427ce1055
nfsd4: don't query change attribute in v2/v3 case

inode_query_iversion() has side effects, and there's no point calling it
when we're not even going to use it.

We check whether we're currently processing a v4 request by checking
fh_maxsize, which is arguably a little hacky; we could add a flag to
svc_fh instead.

Signed-off-by: J. Bruce Fields <[email protected]>
Signed-off-by: Chuck Lever <[email protected]>
fs/nfsd/nfs3xdr.c
This page took 0.044924 seconds and 4 git commands to generate.