提交 91efc167 编写于 作者: C Christoph Hellwig 提交者: Al Viro

[PATCH] reiserfs: add missing llseek method

Reiserfs currently doesn't set a llseek method for regular files, which
means it will fall back to default_llseek.  This means no one can seek
beyond 2 Gigabytes on reiserfs, and that there's not protection vs
the i_size updates from writers.
Signed-off-by: NChristoph Hellwig <hch@lst.de>
上级 3222a3e5
...@@ -296,6 +296,7 @@ const struct file_operations reiserfs_file_operations = { ...@@ -296,6 +296,7 @@ const struct file_operations reiserfs_file_operations = {
.aio_write = generic_file_aio_write, .aio_write = generic_file_aio_write,
.splice_read = generic_file_splice_read, .splice_read = generic_file_splice_read,
.splice_write = generic_file_splice_write, .splice_write = generic_file_splice_write,
.llseek = generic_file_llseek,
}; };
const struct inode_operations reiserfs_file_inode_operations = { const struct inode_operations reiserfs_file_inode_operations = {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册