lkml.org 
[lkml]   [2011]   [Dec]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] mm/hugetlb.c: cleanup to use long vars instead of int in region_count
args f & t and fields from & to of struct file_region are defined
as long. Use long instead of int to type the temp vars.

Signed-off-by: Wang Sheng-Hui <shhuiw@gmail.com>
---
mm/hugetlb.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/mm/hugetlb.c b/mm/hugetlb.c
index dae27ba..e666287 100644
--- a/mm/hugetlb.c
+++ b/mm/hugetlb.c
@@ -195,8 +195,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;
--
1.7.1


\
 
 \ /
  Last update: 2011-12-13 07:39    [W:0.065 / U:0.188 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site