linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] hugetlbfs: add llseek method
@ 2008-09-08 17:46 Christoph Hellwig
  2008-09-22  7:58 ` Mel Gorman
  2008-09-22 18:56 ` Mel Gorman
  0 siblings, 2 replies; 5+ messages in thread
From: Christoph Hellwig @ 2008-09-08 17:46 UTC (permalink / raw)
  To: viro; +Cc: linux-fsdevel, linux-mm

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 = {

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2008-09-25  1:15 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-09-08 17:46 [PATCH] hugetlbfs: add llseek method Christoph Hellwig
2008-09-22  7:58 ` Mel Gorman
2008-09-22 18:56 ` Mel Gorman
2008-09-24 19:00   ` Christoph Hellwig
2008-09-25  1:15     ` Mel Gorman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox