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)
commit1bcf4c5c597d1b1862cf54e65198f1c9e3cad29c
tree1003f3d544bb5437b6a739262b613e65f4a95006
parent63519fbc67d0d9912c13185b7c1e8c2fcb218cc0
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