Skip to content

Commit

Permalink
ocfs2: Use generic_file_llseek
Browse files Browse the repository at this point in the history
We should use generic_file_llseek() and not default_llseek() so that
s_maxbytes gets properly checked when seeking.

Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Mark Fasheh <mark.fasheh@oracle.com>
  • Loading branch information
Jan Kara authored and Mark Fasheh committed Jan 25, 2008
1 parent d2849fb commit 32c3c0e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions fs/ocfs2/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -2233,6 +2233,7 @@ const struct inode_operations ocfs2_special_file_iops = {
};

const struct file_operations ocfs2_fops = {
.llseek = generic_file_llseek,
.read = do_sync_read,
.write = do_sync_write,
.mmap = ocfs2_mmap,
Expand All @@ -2251,6 +2252,7 @@ const struct file_operations ocfs2_fops = {
};

const struct file_operations ocfs2_dops = {
.llseek = generic_file_llseek,
.read = generic_read_dir,
.readdir = ocfs2_readdir,
.fsync = ocfs2_sync_file,
Expand Down

0 comments on commit 32c3c0e

Please sign in to comment.