staging: erofs: switch to ->iterate_shared()
authorGao Xiang <gaoxiang25@huawei.com>
Thu, 21 Feb 2019 02:34:11 +0000 (10:34 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 26 Feb 2019 10:52:46 +0000 (11:52 +0100)
After commit 6192269444eb ("introduce a parallel variant of ->iterate()"),
readdir can be done without taking exclusive inode lock of course.

Signed-off-by: Gao Xiang <gaoxiang25@huawei.com>
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/erofs/dir.c

index 8f8ac96759219a92f6ee3697c66cf6e975787349..829f7b12e0dcf4aa3ee34a5315f6d5f52b7087ec 100644 (file)
@@ -142,6 +142,6 @@ skip_this:
 const struct file_operations erofs_dir_fops = {
        .llseek         = generic_file_llseek,
        .read           = generic_read_dir,
-       .iterate        = erofs_readdir,
+       .iterate_shared = erofs_readdir,
 };