diff options
author | Trond Myklebust <trondmy@gmail.com> | 2020-02-02 17:53:56 -0500 |
---|---|---|
committer | Anna Schumaker <Anna.Schumaker@Netapp.com> | 2020-02-03 16:37:51 -0500 |
commit | 93a6ab7b691fe33d5a30e7fc8e85276de2815108 (patch) | |
tree | b75fc5dab39dc9f074cfa7b0af0ad794ca375aa2 /fs/nfs/dir.c | |
parent | 3803d6721baff3d5dd6cd6b8c7294e54d124bc41 (diff) | |
download | linux-93a6ab7b691fe33d5a30e7fc8e85276de2815108.tar.gz linux-93a6ab7b691fe33d5a30e7fc8e85276de2815108.tar.bz2 linux-93a6ab7b691fe33d5a30e7fc8e85276de2815108.zip |
NFS: Switch readdir to using iterate_shared()
Now that the page cache locking is repaired, we should be able to
switch to using iterate_shared() for improved concurrency when
doing readdir().
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Reviewed-by: Benjamin Coddington <bcodding@redhat.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Diffstat (limited to 'fs/nfs/dir.c')
-rw-r--r-- | fs/nfs/dir.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfs/dir.c b/fs/nfs/dir.c index 5a8ff7e97ce3..88f6cf1ccf8c 100644 --- a/fs/nfs/dir.c +++ b/fs/nfs/dir.c @@ -58,7 +58,7 @@ static void nfs_readdir_clear_array(struct page*); const struct file_operations nfs_dir_operations = { .llseek = nfs_llseek_dir, .read = generic_read_dir, - .iterate = nfs_readdir, + .iterate_shared = nfs_readdir, .open = nfs_opendir, .release = nfs_closedir, .fsync = nfs_fsync_dir, |