From: Trond Myklebust Date: Sun, 2 Feb 2020 22:53:56 +0000 (-0500) Subject: NFS: Switch readdir to using iterate_shared() X-Git-Tag: v5.15~4515^2~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=93a6ab7b691fe33d5a30e7fc8e85276de2815108;p=platform%2Fkernel%2Flinux-starfive.git 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 Reviewed-by: Benjamin Coddington Signed-off-by: Anna Schumaker --- 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,