]> git.baikalelectronics.ru Git - kernel.git/commit
NFS: Be more aggressive in using readdirplus for 'ls -l' situations
authorTrond Myklebust <trond.myklebust@primarydata.com>
Fri, 7 Feb 2014 22:02:08 +0000 (17:02 -0500)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Tue, 11 Feb 2014 19:01:20 +0000 (14:01 -0500)
commit22d025e86d91243fada51f0b00d0c564ad9fa740
tree524ee4e8b5049a48ab9d3824eada3c5099de4dd2
parentb200578b9ef8836205b5d3e9211875ca0ee62acc
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>
fs/nfs/dir.c
fs/nfs/inode.c
fs/nfs/internal.h
include/linux/nfs_fs.h