提交 f2135a4a 编写于 作者: W Wang Sheng-Hui 提交者: 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: NWang Sheng-Hui <shhuiw@gmail.com>
Acked-by: NDavid Rientjes <rientjes@google.com>
Acked-by: NHillf Danton <dhillf@gmail.com>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册