staging: erofs: switch to ->iterate_shared()

After commit 6192269444 ("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>
This commit is contained in:
Gao Xiang 2019-02-21 10:34:11 +08:00 коммит произвёл Greg Kroah-Hartman
Родитель 00fa3661a4
Коммит bee1568293
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -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,
};