Skip to content

Commit

Permalink
[PATCH] reiserfs: add missing llseek method
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Christoph Hellwig authored and Al Viro committed Oct 23, 2008
1 parent 3222a3e commit 91efc16
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fs/reiserfs/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,7 @@ const struct file_operations reiserfs_file_operations = {
.aio_write = generic_file_aio_write,
.splice_read = generic_file_splice_read,
.splice_write = generic_file_splice_write,
.llseek = generic_file_llseek,
};

const struct inode_operations reiserfs_file_inode_operations = {
Expand Down

0 comments on commit 91efc16

Please sign in to comment.