Skip to content

Commit 91efc16

Browse files
Christoph HellwigAl Viro
authored andcommitted
[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: Christoph Hellwig <hch@lst.de>
1 parent 3222a3e commit 91efc16

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎fs/reiserfs/file.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,7 @@ const struct file_operations reiserfs_file_operations = {
296296
.aio_write = generic_file_aio_write,
297297
.splice_read = generic_file_splice_read,
298298
.splice_write = generic_file_splice_write,
299+
.llseek = generic_file_llseek,
299300
};
300301

301302
const struct inode_operations reiserfs_file_inode_operations = {

0 commit comments

Comments
 (0)