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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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, send a message with 'unsubscribe linux-mm' in
the body to majordomo@xxxxxxxxx.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/
Don't email: <a href


[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]