Commit 91efc167d02509ea78abeff6d668065964c67c0b

Authored by Christoph Hellwig
Committed by Al Viro
1 parent 3222a3e55f

[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>

Showing 1 changed file with 1 additions and 0 deletions Side-by-side Diff

... ... @@ -296,6 +296,7 @@
296 296 .aio_write = generic_file_aio_write,
297 297 .splice_read = generic_file_splice_read,
298 298 .splice_write = generic_file_splice_write,
  299 + .llseek = generic_file_llseek,
299 300 };
300 301  
301 302 const struct inode_operations reiserfs_file_inode_operations = {