Commit f2135a4a authored by Wang Sheng-Hui's avatar Wang Sheng-Hui Committed by Linus Torvalds

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: default avatarWang Sheng-Hui <shhuiw@gmail.com>
Acked-by: default avatarDavid Rientjes <rientjes@google.com>
Acked-by: default avatarHillf Danton <dhillf@gmail.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 89c522c7
...@@ -273,8 +273,8 @@ static long region_count(struct list_head *head, long f, long t) ...@@ -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. */ /* Locate each segment we overlap with, and count that overlap. */
list_for_each_entry(rg, head, link) { list_for_each_entry(rg, head, link) {
int seg_from; long seg_from;
int seg_to; long seg_to;
if (rg->to <= f) if (rg->to <= f)
continue; continue;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment