* [PATCH] mm/hugetlb.c: cleanup to use long vars instead of int in region_count
@ 2011-12-13 6:35 Wang Sheng-Hui
2011-12-14 3:28 ` David Rientjes
2012-03-07 21:31 ` David Rientjes
0 siblings, 2 replies; 5+ messages in thread
From: Wang Sheng-Hui @ 2011-12-13 6:35 UTC (permalink / raw)
To: linux-mm, linux-kernel
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
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. 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=mailto:"dont@kvack.org"> email@kvack.org </a>
^ permalink raw reply related [flat|nested] 5+ messages in thread* Re: [PATCH] mm/hugetlb.c: cleanup to use long vars instead of int in region_count
2011-12-13 6:35 [PATCH] mm/hugetlb.c: cleanup to use long vars instead of int in region_count Wang Sheng-Hui
@ 2011-12-14 3:28 ` David Rientjes
2012-03-07 21:31 ` David Rientjes
1 sibling, 0 replies; 5+ messages in thread
From: David Rientjes @ 2011-12-14 3:28 UTC (permalink / raw)
To: Wang Sheng-Hui; +Cc: linux-mm, linux-kernel
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@gmail.com>
Acked-by: David Rientjes <rientjes@google.com>
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. 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=mailto:"dont@kvack.org"> email@kvack.org </a>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] mm/hugetlb.c: cleanup to use long vars instead of int in region_count
2011-12-13 6:35 [PATCH] mm/hugetlb.c: cleanup to use long vars instead of int in region_count Wang Sheng-Hui
2011-12-14 3:28 ` David Rientjes
@ 2012-03-07 21:31 ` David Rientjes
2012-04-04 6:49 ` David Rientjes
1 sibling, 1 reply; 5+ messages in thread
From: David Rientjes @ 2012-03-07 21:31 UTC (permalink / raw)
To: Andrew Morton, Wang Sheng-Hui; +Cc: linux-mm, linux-kernel
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@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;
Acked-by: David Rientjes <rientjes@google.com>
Andrew, it looks like this never made it to linux-next.
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. 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=mailto:"dont@kvack.org"> email@kvack.org </a>
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: [PATCH] mm/hugetlb.c: cleanup to use long vars instead of int in region_count
2012-03-07 21:31 ` David Rientjes
@ 2012-04-04 6:49 ` David Rientjes
2012-04-04 12:22 ` Hillf Danton
0 siblings, 1 reply; 5+ messages in thread
From: David Rientjes @ 2012-04-04 6:49 UTC (permalink / raw)
To: Andrew Morton, Wang Sheng-Hui; +Cc: linux-mm, linux-kernel
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@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;
>
> Acked-by: David Rientjes <rientjes@google.com>
>
> Andrew, it looks like this never made it to linux-next.
>
Still not in linux-next as of today.
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. 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=mailto:"dont@kvack.org"> email@kvack.org </a>
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: [PATCH] mm/hugetlb.c: cleanup to use long vars instead of int in region_count
2012-04-04 6:49 ` David Rientjes
@ 2012-04-04 12:22 ` Hillf Danton
0 siblings, 0 replies; 5+ messages in thread
From: Hillf Danton @ 2012-04-04 12:22 UTC (permalink / raw)
To: David Rientjes
Cc: Andrew Morton, Wang Sheng-Hui, linux-mm, linux-kernel,
Hillf Danton
On Wed, Apr 4, 2012 at 2:49 PM, David Rientjes <rientjes@google.com> 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@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;
>>
>> Acked-by: David Rientjes <rientjes@google.com>
>>
Acked-by: Hillf Danton <dhillf@gmail.com>
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. 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=mailto:"dont@kvack.org"> email@kvack.org </a>
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2012-04-04 12:22 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-13 6:35 [PATCH] mm/hugetlb.c: cleanup to use long vars instead of int in region_count Wang Sheng-Hui
2011-12-14 3:28 ` David Rientjes
2012-03-07 21:31 ` David Rientjes
2012-04-04 6:49 ` David Rientjes
2012-04-04 12:22 ` Hillf Danton
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).