提交 32c3c0e2 编写于 作者: J Jan Kara 提交者: Mark Fasheh

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: NJan Kara <jack@suse.cz>
Signed-off-by: NMark Fasheh <mark.fasheh@oracle.com>
上级 d2849fb2
...@@ -2233,6 +2233,7 @@ const struct inode_operations ocfs2_special_file_iops = { ...@@ -2233,6 +2233,7 @@ const struct inode_operations ocfs2_special_file_iops = {
}; };
const struct file_operations ocfs2_fops = { const struct file_operations ocfs2_fops = {
.llseek = generic_file_llseek,
.read = do_sync_read, .read = do_sync_read,
.write = do_sync_write, .write = do_sync_write,
.mmap = ocfs2_mmap, .mmap = ocfs2_mmap,
...@@ -2251,6 +2252,7 @@ const struct file_operations ocfs2_fops = { ...@@ -2251,6 +2252,7 @@ const struct file_operations ocfs2_fops = {
}; };
const struct file_operations ocfs2_dops = { const struct file_operations ocfs2_dops = {
.llseek = generic_file_llseek,
.read = generic_read_dir, .read = generic_read_dir,
.readdir = ocfs2_readdir, .readdir = ocfs2_readdir,
.fsync = ocfs2_sync_file, .fsync = ocfs2_sync_file,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册