Commit f2135a4a57a798ca8014a138afb626b96d90c842

Authored by Wang Sheng-Hui
Committed by Linus Torvalds
1 parent 89c522c78a

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 <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>

Showing 1 changed file with 2 additions and 2 deletions Side-by-side Diff

... ... @@ -273,8 +273,8 @@
273 273  
274 274 /* Locate each segment we overlap with, and count that overlap. */
275 275 list_for_each_entry(rg, head, link) {
276   - int seg_from;
277   - int seg_to;
  276 + long seg_from;
  277 + long seg_to;
278 278  
279 279 if (rg->to <= f)
280 280 continue;