Commit 59af1584 authored by Al Viro's avatar Al Viro

[PATCH] fix ->llseek() for a bunch of directories

Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 8f3f655d
...@@ -119,6 +119,7 @@ int v9fs_dir_release(struct inode *inode, struct file *filp) ...@@ -119,6 +119,7 @@ int v9fs_dir_release(struct inode *inode, struct file *filp)
const struct file_operations v9fs_dir_operations = { const struct file_operations v9fs_dir_operations = {
.read = generic_read_dir, .read = generic_read_dir,
.llseek = generic_file_llseek,
.readdir = v9fs_dir_readdir, .readdir = v9fs_dir_readdir,
.open = v9fs_file_open, .open = v9fs_file_open,
.release = v9fs_dir_release, .release = v9fs_dir_release,
......
...@@ -197,6 +197,7 @@ adfs_dir_lookup_byname(struct inode *inode, struct qstr *name, struct object_inf ...@@ -197,6 +197,7 @@ adfs_dir_lookup_byname(struct inode *inode, struct qstr *name, struct object_inf
const struct file_operations adfs_dir_operations = { const struct file_operations adfs_dir_operations = {
.read = generic_read_dir, .read = generic_read_dir,
.llseek = generic_file_llseek,
.readdir = adfs_readdir, .readdir = adfs_readdir,
.fsync = file_fsync, .fsync = file_fsync,
}; };
......
...@@ -19,6 +19,7 @@ static int affs_readdir(struct file *, void *, filldir_t); ...@@ -19,6 +19,7 @@ static int affs_readdir(struct file *, void *, filldir_t);
const struct file_operations affs_dir_operations = { const struct file_operations affs_dir_operations = {
.read = generic_read_dir, .read = generic_read_dir,
.llseek = generic_file_llseek,
.readdir = affs_readdir, .readdir = affs_readdir,
.fsync = file_fsync, .fsync = file_fsync,
}; };
......
...@@ -36,6 +36,7 @@ const struct file_operations autofs4_root_operations = { ...@@ -36,6 +36,7 @@ const struct file_operations autofs4_root_operations = {
.release = dcache_dir_close, .release = dcache_dir_close,
.read = generic_read_dir, .read = generic_read_dir,
.readdir = dcache_readdir, .readdir = dcache_readdir,
.llseek = dcache_dir_lseek,
.ioctl = autofs4_root_ioctl, .ioctl = autofs4_root_ioctl,
}; };
...@@ -44,6 +45,7 @@ const struct file_operations autofs4_dir_operations = { ...@@ -44,6 +45,7 @@ const struct file_operations autofs4_dir_operations = {
.release = dcache_dir_close, .release = dcache_dir_close,
.read = generic_read_dir, .read = generic_read_dir,
.readdir = dcache_readdir, .readdir = dcache_readdir,
.llseek = dcache_dir_lseek,
}; };
const struct inode_operations autofs4_indirect_root_inode_operations = { const struct inode_operations autofs4_indirect_root_inode_operations = {
......
...@@ -66,6 +66,7 @@ static struct kmem_cache *befs_inode_cachep; ...@@ -66,6 +66,7 @@ static struct kmem_cache *befs_inode_cachep;
static const struct file_operations befs_dir_operations = { static const struct file_operations befs_dir_operations = {
.read = generic_read_dir, .read = generic_read_dir,
.readdir = befs_readdir, .readdir = befs_readdir,
.llseek = generic_file_llseek,
}; };
static const struct inode_operations befs_dir_inode_operations = { static const struct inode_operations befs_dir_inode_operations = {
......
...@@ -475,6 +475,7 @@ const struct file_operations xfs_invis_file_operations = { ...@@ -475,6 +475,7 @@ const struct file_operations xfs_invis_file_operations = {
const struct file_operations xfs_dir_file_operations = { const struct file_operations xfs_dir_file_operations = {
.read = generic_read_dir, .read = generic_read_dir,
.readdir = xfs_file_readdir, .readdir = xfs_file_readdir,
.llseek = generic_file_llseek,
.unlocked_ioctl = xfs_file_ioctl, .unlocked_ioctl = xfs_file_ioctl,
#ifdef CONFIG_COMPAT #ifdef CONFIG_COMPAT
.compat_ioctl = xfs_file_compat_ioctl, .compat_ioctl = xfs_file_compat_ioctl,
......
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