]> git.baikalelectronics.ru Git - kernel.git/commit
NFS: Allow getattr to also report readdirplus cache hits
authorTrond Myklebust <trond.myklebust@primarydata.com>
Fri, 2 Dec 2016 14:15:37 +0000 (09:15 -0500)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Fri, 2 Dec 2016 16:42:51 +0000 (11:42 -0500)
commitdddc180838c485555e01f5151ea25b7011d0d06a
tree1003f3d544bb5437b6a739262b613e65f4a95006
parent32c0b70bb3c68a98bcbfe11ac3fc69254cb077d4
NFS: Allow getattr to also report readdirplus cache hits

If the use called stat() on an 'ls -l' workload, and the attribute
cache was successfully revalidate by READDIRPLUS, then we want to
report that back so that the readdir code continues to use
readdirplus.

Reviewed-by: Benjamin Coddington <bcodding@redhat.com>
Tested-by: Benjamin Coddington <bcodding@redhat.com>
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
fs/nfs/dir.c
fs/nfs/inode.c
fs/nfs/internal.h