From: Al Viro Date: Sun, 1 May 2016 03:08:45 +0000 (-0400) Subject: romfs, squashfs: switch to ->iterate_shared() X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=d375570fa83761161bb3d9120e0260dec66f051d;p=openwrt%2Fstaging%2Fblogic.git romfs, squashfs: switch to ->iterate_shared() don't need to lock directory in ->llseek(), either Signed-off-by: Al Viro --- diff --git a/fs/romfs/super.c b/fs/romfs/super.c index 6b00ca357c58..d0f8a38dfafa 100644 --- a/fs/romfs/super.c +++ b/fs/romfs/super.c @@ -280,8 +280,8 @@ error: static const struct file_operations romfs_dir_operations = { .read = generic_read_dir, - .iterate = romfs_readdir, - .llseek = default_llseek, + .iterate_shared = romfs_readdir, + .llseek = generic_file_llseek, }; static const struct inode_operations romfs_dir_inode_operations = { diff --git a/fs/squashfs/dir.c b/fs/squashfs/dir.c index d8c2d747be28..a5845f94a2a1 100644 --- a/fs/squashfs/dir.c +++ b/fs/squashfs/dir.c @@ -231,6 +231,6 @@ failed_read: const struct file_operations squashfs_dir_ops = { .read = generic_read_dir, - .iterate = squashfs_readdir, - .llseek = default_llseek, + .iterate_shared = squashfs_readdir, + .llseek = generic_file_llseek, };