Re: [PATCH] mm/hugetlb.c: cleanup to use long vars instead of int in region_count

From: Hillf Danton
Date: Wed Apr 04 2012 - 08:22:42 EST


On Wed, Apr 4, 2012 at 2:49 PM, David Rientjes <rientjes@xxxxxxxxxx> wrote:
> On Wed, 7 Mar 2012, David Rientjes wrote:
>
>> On Tue, 13 Dec 2011, Wang Sheng-Hui wrote:
>>
>> > 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@xxxxxxxxx>
>> > ---
>> > Â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;
>>
>> Acked-by: David Rientjes <rientjes@xxxxxxxxxx>
>>

Acked-by: Hillf Danton <dhillf@xxxxxxxxx>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/