diff options
author | J. Bruce Fields <bfields@redhat.com> | 2020-11-30 23:46:17 +0100 |
---|---|---|
committer | Chuck Lever <chuck.lever@oracle.com> | 2020-12-09 15:39:38 +0100 |
commit | 942b20dc245590327ee0187c15c78174cd96dd52 (patch) | |
tree | 8db4fedecaf450af847ff1930ee55cb876e33a3c /fs/nfsd/nfsd.h | |
parent | nfsd: minor nfsd4_change_attribute cleanup (diff) | |
download | linux-942b20dc245590327ee0187c15c78174cd96dd52.tar.xz linux-942b20dc245590327ee0187c15c78174cd96dd52.zip |
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 <bfields@redhat.com>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Diffstat (limited to 'fs/nfsd/nfsd.h')
0 files changed, 0 insertions, 0 deletions