aboutsummaryrefslogtreecommitdiffstats
path: root/mm/hugetlb.c
diff options
context:
space:
mode:
authorAdam Litke <agl@us.ibm.com>2006-01-06 00:10:40 -0800
committerLinus Torvalds <torvalds@g5.osdl.org>2006-01-06 08:33:22 -0800
commitf0916794f00be44154102dedaeafe68b743078a2 (patch)
tree0faa7e86d938c184f5ccead70410b4d014c2bdf2 /mm/hugetlb.c
parentf6b3ec238d12c8cc6cc71490c6e3127988460349 (diff)
downloadkernel_samsung_smdk4412-f0916794f00be44154102dedaeafe68b743078a2.zip
kernel_samsung_smdk4412-f0916794f00be44154102dedaeafe68b743078a2.tar.gz
kernel_samsung_smdk4412-f0916794f00be44154102dedaeafe68b743078a2.tar.bz2
[PATCH] Hugetlb: Remove duplicate i_size check
cleanup Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Adam Litke <agl@us.ibm.com> Cc: William Lee Irwin III <wli@holomorphy.com> Cc: "Seth, Rohit" <rohit.seth@intel.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'mm/hugetlb.c')
-rw-r--r--mm/hugetlb.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/mm/hugetlb.c b/mm/hugetlb.c
index 3e52df7..acb8641 100644
--- a/mm/hugetlb.c
+++ b/mm/hugetlb.c
@@ -350,19 +350,12 @@ static struct page *find_lock_huge_page(struct address_space *mapping,
{
struct page *page;
int err;
- struct inode *inode = mapping->host;
- unsigned long size;
retry:
page = find_lock_page(mapping, idx);
if (page)
goto out;
- /* Check to make sure the mapping hasn't been truncated */
- size = i_size_read(inode) >> HPAGE_SHIFT;
- if (idx >= size)
- goto out;
-
if (hugetlb_get_quota(mapping))
goto out;
page = alloc_huge_page();