[PATCH] hugetlbfs: add llseek method

Christoph Hellwig
2008-09-08T17:46:34Z

Hugetlbfs 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.

Signed-off-by: Christoph Hellwig <hch@lst.de>

Index: linux-2.6/fs/hugetlbfs/inode.c
===================================================================
--- linux-2.6.orig/fs/hugetlbfs/inode.c 2008-09-08 19:44:33.000000000 +0200
+++ linux-2.6/fs/hugetlbfs/inode.c 2008-09-08 19:44:58.000000000 +0200
@@ -717,6 +717,7 @@ const struct file_operations hugetlbfs_f
.mmap = hugetlbfs_file_mmap,
.fsync = simple_sync_file,
.get_unmapped_area = hugetlb_get_unmapped_area,
+ .llseek = generic_file_llseek,
};

static const struct inode_operations hugetlbfs_dir_inode_operations = {