From: Wang Sheng-Hui Date: Tue, 29 May 2012 22:06:17 +0000 (-0700) Subject: mm/hugetlb.c: use long vars instead of int in region_count() X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=f2135a4a57a798ca8014a138afb626b96d90c842;p=deliverable%2Flinux.git mm/hugetlb.c: use long vars instead of int in region_count() The arguments f & t and fields from & to of struct file_region are defined as long. So use long instead of int to type the temp vars. Signed-off-by: Wang Sheng-Hui Acked-by: David Rientjes Acked-by: Hillf Danton Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/mm/hugetlb.c b/mm/hugetlb.c index 4e28416c47fb..41a647dfb738 100644 --- a/mm/hugetlb.c +++ b/mm/hugetlb.c @@ -273,8 +273,8 @@ static long region_count(struct list_head *head, long f, long t) /* Locate each segment we overlap with, and count that overlap. */ list_for_each_entry(rg, head, link) { - int seg_from; - int seg_to; + long seg_from; + long seg_to; if (rg->to <= f) continue;