]> git.baikalelectronics.ru Git - kernel.git/commit
NFS: Don't ask for readdirplus unless it can help nfs_getattr()
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Thu, 17 Feb 2022 20:46:23 +0000 (15:46 -0500)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Wed, 2 Mar 2022 13:43:38 +0000 (08:43 -0500)
commita2f8627c76af5fd156f324fdc719ce2911ee96d1
treef74d0752488ab9e3421d6a0d9b8055f949c3a621
parentb5baac9c4b2418adca1143af94cbf358390fcc1b
NFS: Don't ask for readdirplus unless it can help nfs_getattr()

If attribute caching is turned off, then use of readdirplus is not going
to help stat() performance.
Readdirplus also doesn't help if a file is being written to, since we
will have to flush those writes in order to sync the mtime/ctime.

Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
fs/nfs/inode.c