Skip to content

Commit

Permalink
[PATCH] fix ->llseek() for a bunch of directories
Browse files Browse the repository at this point in the history
Signed-off-by: Al Viro <[email protected]>
  • Loading branch information
Al Viro committed Aug 25, 2008
1 parent 8f3f655 commit 59af158
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions fs/9p/vfs_dir.c
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ int v9fs_dir_release(struct inode *inode, struct file *filp)

const struct file_operations v9fs_dir_operations = {
.read = generic_read_dir,
.llseek = generic_file_llseek,
.readdir = v9fs_dir_readdir,
.open = v9fs_file_open,
.release = v9fs_dir_release,
Expand Down
1 change: 1 addition & 0 deletions fs/adfs/dir.c
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,7 @@ adfs_dir_lookup_byname(struct inode *inode, struct qstr *name, struct object_inf

const struct file_operations adfs_dir_operations = {
.read = generic_read_dir,
.llseek = generic_file_llseek,
.readdir = adfs_readdir,
.fsync = file_fsync,
};
Expand Down
1 change: 1 addition & 0 deletions fs/affs/dir.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ static int affs_readdir(struct file *, void *, filldir_t);

const struct file_operations affs_dir_operations = {
.read = generic_read_dir,
.llseek = generic_file_llseek,
.readdir = affs_readdir,
.fsync = file_fsync,
};
Expand Down
2 changes: 2 additions & 0 deletions fs/autofs4/root.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ const struct file_operations autofs4_root_operations = {
.release = dcache_dir_close,
.read = generic_read_dir,
.readdir = dcache_readdir,
.llseek = dcache_dir_lseek,
.ioctl = autofs4_root_ioctl,
};

Expand All @@ -44,6 +45,7 @@ const struct file_operations autofs4_dir_operations = {
.release = dcache_dir_close,
.read = generic_read_dir,
.readdir = dcache_readdir,
.llseek = dcache_dir_lseek,
};

const struct inode_operations autofs4_indirect_root_inode_operations = {
Expand Down
1 change: 1 addition & 0 deletions fs/befs/linuxvfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ static struct kmem_cache *befs_inode_cachep;
static const struct file_operations befs_dir_operations = {
.read = generic_read_dir,
.readdir = befs_readdir,
.llseek = generic_file_llseek,
};

static const struct inode_operations befs_dir_inode_operations = {
Expand Down
1 change: 1 addition & 0 deletions fs/xfs/linux-2.6/xfs_file.c
Original file line number Diff line number Diff line change
Expand Up @@ -475,6 +475,7 @@ const struct file_operations xfs_invis_file_operations = {
const struct file_operations xfs_dir_file_operations = {
.read = generic_read_dir,
.readdir = xfs_file_readdir,
.llseek = generic_file_llseek,
.unlocked_ioctl = xfs_file_ioctl,
#ifdef CONFIG_COMPAT
.compat_ioctl = xfs_file_compat_ioctl,
Expand Down

0 comments on commit 59af158

Please sign in to comment.