From: Hugh Dickins Date: Sat, 28 Oct 2006 17:38:43 +0000 (-0700) Subject: [PATCH] hugetlb: fix absurd HugePages_Rsvd X-Git-Tag: v2.6.19-rc4~49 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ebed4bfc8da8df5b6b0bc4a5064a949f04683509;p=pandora-kernel.git [PATCH] hugetlb: fix absurd HugePages_Rsvd If you truncated an mmap'ed hugetlbfs file, then faulted on the truncated area, /proc/meminfo's HugePages_Rsvd wrapped hugely "negative". Reinstate my preliminary i_size check before attempting to allocate the page (though this only fixes the most obvious case: more work will be needed here). Signed-off-by: Hugh Dickins Cc: Adam Litke Cc: David Gibson Cc: "Chen, Kenneth W" Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed