Skip to content

Commit

Permalink
romfs, squashfs: switch to ->iterate_shared()
Browse files Browse the repository at this point in the history
don't need to lock directory in ->llseek(), either

Signed-off-by: Al Viro <[email protected]>
  • Loading branch information
Al Viro committed May 9, 2016
1 parent c51da20 commit d375570
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions fs/romfs/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -280,8 +280,8 @@ static struct dentry *romfs_lookup(struct inode *dir, struct dentry *dentry,

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 = {
Expand Down
4 changes: 2 additions & 2 deletions fs/squashfs/dir.c
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,6 @@ static int squashfs_readdir(struct file *file, struct dir_context *ctx)

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

0 comments on commit d375570

Please sign in to comment.