Skip to content

Commit

Permalink
mm/hugetlb.c: use long vars instead of int in region_count()
Browse files Browse the repository at this point in the history
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 <shhuiw@gmail.com>
Acked-by: David Rientjes <rientjes@google.com>
Acked-by: Hillf Danton <dhillf@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Wang Sheng-Hui authored and Linus Torvalds committed May 29, 2012
1 parent 89c522c commit f2135a4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mm/hugetlb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit f2135a4

Please sign in to comment.