OSDN Git Service

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)
commitad1e109a4109ce0cbdfebfbe1958d0c333166d5c
treef74d0752488ab9e3421d6a0d9b8055f949c3a621
parent230bc98f7a2a49eb472d184bdec91fd3096384b3
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