diff options
author | Jan Kara <jack@suse.cz> | 2007-12-19 15:24:52 +0100 |
---|---|---|
committer | Mark Fasheh <mark.fasheh@oracle.com> | 2008-01-25 15:05:45 -0800 |
commit | 32c3c0e2e515197ad240f5104116254975e6bbce (patch) | |
tree | eb68b0a63c68ca9f51a5dad94430696c2bb17b2a /fs | |
parent | d2849fb294d92d6eee0a811c688f1ecb39d26800 (diff) | |
download | linux-3.10-32c3c0e2e515197ad240f5104116254975e6bbce.tar.gz linux-3.10-32c3c0e2e515197ad240f5104116254975e6bbce.tar.bz2 linux-3.10-32c3c0e2e515197ad240f5104116254975e6bbce.zip |
ocfs2: Use generic_file_llseek
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>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/ocfs2/file.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/ocfs2/file.c b/fs/ocfs2/file.c index caefd571782..6ebc9f9ec52 100644 --- a/fs/ocfs2/file.c +++ b/fs/ocfs2/file.c @@ -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, @@ -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, |