From: Roel Kluin Date: Tue, 31 Mar 2009 22:23:15 +0000 (-0700) Subject: hugetlb: chg cannot become less than 0 X-Git-Tag: v2.6.30-rc1~567 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e2f17d9459aeccf4e013e31cbd741d6b1858eec4;p=pandora-kernel.git hugetlb: chg cannot become less than 0 chg is unsigned, so it cannot be less than 0. Also, since region_chg returns long, let vma_needs_reservation() forward this to alloc_huge_page(). Store it as long as well. all callers cast it to long anyway. Signed-off-by: Roel Kluin Cc: Andy Whitcroft Cc: Mel Gorman Cc: Adam Litke Cc: Johannes Weiner Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed