summaryrefslogtreecommitdiffstats
path: root/include/linux/nfs_fs.h
diff options
context:
space:
mode:
authorTrond Myklebust2014-02-07 23:02:08 +0100
committerTrond Myklebust2014-02-11 20:01:20 +0100
commit311324ad1713666a6e803aecf0d4e1a136a5b34a (patch)
tree524ee4e8b5049a48ab9d3824eada3c5099de4dd2 /include/linux/nfs_fs.h
parentSUNRPC: RPC callbacks may be split across several TCP segments (diff)
downloadkernel-qcow2-linux-311324ad1713666a6e803aecf0d4e1a136a5b34a.tar.gz
kernel-qcow2-linux-311324ad1713666a6e803aecf0d4e1a136a5b34a.tar.xz
kernel-qcow2-linux-311324ad1713666a6e803aecf0d4e1a136a5b34a.zip
NFS: Be more aggressive in using readdirplus for 'ls -l' situations
Try to detect 'ls -l' by having nfs_getattr() look at whether or not there is an opendir() file descriptor for the parent directory. If so, then assume that we want to force use of readdirplus in order to avoid the multiple GETATTR calls over the wire. Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Diffstat (limited to 'include/linux/nfs_fs.h')
-rw-r--r--include/linux/nfs_fs.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/nfs_fs.h b/include/linux/nfs_fs.h
index 0ae5807480f4..f55a90bed0b4 100644
--- a/include/linux/nfs_fs.h
+++ b/include/linux/nfs_fs.h
@@ -92,6 +92,7 @@ struct nfs_open_context {
};
struct nfs_open_dir_context {
+ struct list_head list;
struct rpc_cred *cred;
unsigned long attr_gencount;
__u64 dir_cookie;