From: Christoph Hellwig <hch@lst.de>
To: viro@zeniv.linux.org.uk
Cc: linux-fsdevel@vger.kernl.org, linux-mm@kvack.org
Subject: [PATCH] hugetlbfs: add llseek method
Date: Mon, 8 Sep 2008 19:46:34 +0200 [thread overview]
Message-ID: <20080908174634.GC19912@lst.de> (raw)
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>
next reply other threads:[~2008-09-08 17:46 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-09-08 17:46 Christoph Hellwig [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080908174634.GC19912@lst.de \
--to=hch@lst.de \
--cc=linux-fsdevel@vger.kernl.org \
--cc=linux-mm@kvack.org \
--cc=viro@zeniv.linux.org.uk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox