[PATCH] reiserfs: add missing llseek method
authorChristoph Hellwig <hch@lst.de>
Mon, 8 Sep 2008 17:42:50 +0000 (19:42 +0200)
committerAl Viro <viro@zeniv.linux.org.uk>
Thu, 23 Oct 2008 09:13:22 +0000 (05:13 -0400)
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>
fs/reiserfs/file.c

index a804903d31d1e336e73072a7e15453a3eac59ce1..33408417038c2c93c576534c8d946deaa66ef4e9 100644 (file)
@@ -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 = {