]> git.baikalelectronics.ru Git - kernel.git/commit
NFS: Only look at the change attribute cache state in nfs_check_verifier
authorTrond Myklebust <trond.myklebust@primarydata.com>
Sun, 4 Dec 2016 23:34:34 +0000 (18:34 -0500)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Sun, 4 Dec 2016 23:34:34 +0000 (18:34 -0500)
commitb5e3a4a4efe9d27cefe800d6ed6a2146af8696a0
treebce7b634a76c12c695f4b69551709ec5c155f393
parentf195fdf4f68d428dec9f302a9405b0e6aaaa0e1e
NFS: Only look at the change attribute cache state in nfs_check_verifier

When looking at whether or not our dcache is valid, we really don't care
about the general state of the directory attribute cache. Instead, we
we only care about the state of the change attribute.

This fixes a performance issue when the client is responsible for
changing the directory contents; a number of NFSv4 operations will
atomically update the directory change attribute, but may not return
all the other attributes.

Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
fs/nfs/dir.c
fs/nfs/inode.c
include/linux/nfs_fs.h