mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-06-11 00:05:22 -04:00
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:
committed by
Greg Kroah-Hartman
parent
00fa3661a4
commit
bee1568293
@@ -142,6 +142,6 @@ static int erofs_readdir(struct file *f, struct dir_context *ctx)
|
||||
const struct file_operations erofs_dir_fops = {
|
||||
.llseek = generic_file_llseek,
|
||||
.read = generic_read_dir,
|
||||
.iterate = erofs_readdir,
|
||||
.iterate_shared = erofs_readdir,
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user