romfs, squashfs: switch to ->iterate_shared()
authorAl Viro <viro@zeniv.linux.org.uk>
Sun, 1 May 2016 03:08:45 +0000 (23:08 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Mon, 9 May 2016 15:41:15 +0000 (11:41 -0400)
don't need to lock directory in ->llseek(), either

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/romfs/super.c
fs/squashfs/dir.c

index 6b00ca357c58f891fc5638ad838e3b26d9ecb989..d0f8a38dfafacd8f3d524d1ff69ae8f621eea278 100644 (file)
@@ -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 = {
index d8c2d747be28d183542a0f2bd4a5d18060436783..a5845f94a2a1790e9392e545bccfe6b3df5f545b 100644 (file)
@@ -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,
 };