]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
nfsd: skip some unnecessary stats in the v4 case
authorJ. Bruce Fields <bfields@redhat.com>
Fri, 29 Jan 2021 19:27:01 +0000 (14:27 -0500)
committerChuck Lever <chuck.lever@oracle.com>
Sat, 30 Jan 2021 16:47:21 +0000 (11:47 -0500)
commit428a23d2bf0ca8fd4d364a464c3e468f0e81671e
tree8cb233fa9898c54c14d9467bd9668c7d48c9ece4
parent3cc55f4434b421d37300aa9a167ace7d60b45ccf
nfsd: skip some unnecessary stats in the v4 case

In the typical case of v4 and an i_version-supporting filesystem, we can
skip a stat which is only required to fake up a change attribute from
ctime.

Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
fs/nfsd/nfs3xdr.c