Commit d375570f authored by Al Viro's avatar Al Viro

romfs, squashfs: switch to ->iterate_shared()

don't need to lock directory in ->llseek(), either
Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent c51da20c
...@@ -280,8 +280,8 @@ static struct dentry *romfs_lookup(struct inode *dir, struct dentry *dentry, ...@@ -280,8 +280,8 @@ static struct dentry *romfs_lookup(struct inode *dir, struct dentry *dentry,
static const struct file_operations romfs_dir_operations = { static const struct file_operations romfs_dir_operations = {
.read = generic_read_dir, .read = generic_read_dir,
.iterate = romfs_readdir, .iterate_shared = romfs_readdir,
.llseek = default_llseek, .llseek = generic_file_llseek,
}; };
static const struct inode_operations romfs_dir_inode_operations = { static const struct inode_operations romfs_dir_inode_operations = {
......
...@@ -231,6 +231,6 @@ static int squashfs_readdir(struct file *file, struct dir_context *ctx) ...@@ -231,6 +231,6 @@ static int squashfs_readdir(struct file *file, struct dir_context *ctx)
const struct file_operations squashfs_dir_ops = { const struct file_operations squashfs_dir_ops = {
.read = generic_read_dir, .read = generic_read_dir,
.iterate = squashfs_readdir, .iterate_shared = squashfs_readdir,
.llseek = default_llseek, .llseek = generic_file_llseek,
}; };
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment