forked from Minki/linux
romfs, squashfs: switch to ->iterate_shared()
don't need to lock directory in ->llseek(), either Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
c51da20c48
commit
d375570fa8
@ -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 = {
|
||||
|
@ -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,
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user