aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ocfs2/file.c
diff options
context:
space:
mode:
authorJan Kara <jack@suse.cz>2007-12-19 09:24:52 -0500
committerMark Fasheh <mark.fasheh@oracle.com>2008-01-25 18:05:45 -0500
commit32c3c0e2e515197ad240f5104116254975e6bbce (patch)
treeeb68b0a63c68ca9f51a5dad94430696c2bb17b2a /fs/ocfs2/file.c
parentd2849fb294d92d6eee0a811c688f1ecb39d26800 (diff)
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/ocfs2/file.c')
-rw-r--r--fs/ocfs2/file.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/ocfs2/file.c b/fs/ocfs2/file.c
index caefd571782e..6ebc9f9ec52c 100644
--- a/fs/ocfs2/file.c
+++ b/fs/ocfs2/file.c
@@ -2233,6 +2233,7 @@ const struct inode_operations ocfs2_special_file_iops = {
2233}; 2233};
2234 2234
2235const struct file_operations ocfs2_fops = { 2235const struct file_operations ocfs2_fops = {
2236 .llseek = generic_file_llseek,
2236 .read = do_sync_read, 2237 .read = do_sync_read,
2237 .write = do_sync_write, 2238 .write = do_sync_write,
2238 .mmap = ocfs2_mmap, 2239 .mmap = ocfs2_mmap,
@@ -2251,6 +2252,7 @@ const struct file_operations ocfs2_fops = {
2251}; 2252};
2252 2253
2253const struct file_operations ocfs2_dops = { 2254const struct file_operations ocfs2_dops = {
2255 .llseek = generic_file_llseek,
2254 .read = generic_read_dir, 2256 .read = generic_read_dir,
2255 .readdir = ocfs2_readdir, 2257 .readdir = ocfs2_readdir,
2256 .fsync = ocfs2_sync_file, 2258 .fsync = ocfs2_sync_file,