public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Re: + vmscan-rename-functions.patch added to -mm tree
       [not found] <200602120605.k1C65QFE028051@shell0.pdx.osdl.net>
@ 2006-02-15  2:47 ` Coywolf Qi Hunt
  2006-02-15  3:09   ` Nick Piggin
  0 siblings, 1 reply; 5+ messages in thread
From: Coywolf Qi Hunt @ 2006-02-15  2:47 UTC (permalink / raw)
  To: linux-kernel; +Cc: akpm, christoph, nickpiggin

2006/2/12, akpm@osdl.org <akpm@osdl.org>:
>
> The patch titled
>
>      vmscan: rename functions
>
> has been added to the -mm tree.  Its filename is
>
>      vmscan-rename-functions.patch
>
> See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find
> out what to do about this
>
>
> From: Andrew Morton <akpm@osdl.org>
>
> We have:
>
>         try_to_free_pages
>         ->shrink_caches(struct zone **zones, ..)
>           ->shrink_zone(struct zone *, ...)
>             ->shrink_cache(struct zone *, ...)
>               ->shrink_list(struct list_head *, ...)
>
> which is fairly irrational.
>
> Rename things so that we have
>
>         try_to_free_pages
>         ->shrink_zones(struct zone **zones, ..)
>           ->shrink_zone(struct zone *, ...)
>             ->do_shrink_zone(struct zone *, ...)
>               ->shrink_page_list(struct list_head *, ...)

Every time I read this part it annoys me. Thanks.
--
Coywolf Qi Hunt

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: + vmscan-rename-functions.patch added to -mm tree
  2006-02-15  2:47 ` + vmscan-rename-functions.patch added to -mm tree Coywolf Qi Hunt
@ 2006-02-15  3:09   ` Nick Piggin
  2006-02-15  6:46     ` Peter Zijlstra
  0 siblings, 1 reply; 5+ messages in thread
From: Nick Piggin @ 2006-02-15  3:09 UTC (permalink / raw)
  To: Coywolf Qi Hunt; +Cc: linux-kernel, akpm, christoph

Coywolf Qi Hunt wrote:
> 2006/2/12, akpm@osdl.org <akpm@osdl.org>:
> 
>>The patch titled
>>
>>     vmscan: rename functions
>>
>>has been added to the -mm tree.  Its filename is
>>
>>     vmscan-rename-functions.patch
>>
>>See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find
>>out what to do about this
>>
>>
>>From: Andrew Morton <akpm@osdl.org>
>>
>>We have:
>>
>>        try_to_free_pages
>>        ->shrink_caches(struct zone **zones, ..)
>>          ->shrink_zone(struct zone *, ...)
>>            ->shrink_cache(struct zone *, ...)
>>              ->shrink_list(struct list_head *, ...)
>>
>>which is fairly irrational.
>>
>>Rename things so that we have
>>
>>        try_to_free_pages
>>        ->shrink_zones(struct zone **zones, ..)
>>          ->shrink_zone(struct zone *, ...)
>>            ->do_shrink_zone(struct zone *, ...)
>>              ->shrink_page_list(struct list_head *, ...)
> 
> 
> Every time I read this part it annoys me. Thanks.

I don't much care, but if there is renaming afoot, I'd vote for

->shrink_zones(struct zone **zones, ..)
  ->shrink_zone(struct zone *, ...)
   ->shrink_inactive_list(struct zone *, ...)
    ->shrink_page_list(struct list_head *, ...)
   ->shrink_active_list (alternatively, leave as refill_inactive_list)

shrink_zone and do_shrink_zone don't really say any more to me than
shrink_zone and shrink_cache.

-- 
SUSE Labs, Novell Inc.
Send instant messages to your online friends http://au.messenger.yahoo.com 

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: + vmscan-rename-functions.patch added to -mm tree
  2006-02-15  3:09   ` Nick Piggin
@ 2006-02-15  6:46     ` Peter Zijlstra
  2006-02-15  8:35       ` Nick Piggin
  0 siblings, 1 reply; 5+ messages in thread
From: Peter Zijlstra @ 2006-02-15  6:46 UTC (permalink / raw)
  To: Nick Piggin; +Cc: Coywolf Qi Hunt, linux-kernel, akpm, christoph

On Wed, 2006-02-15 at 14:09 +1100, Nick Piggin wrote:
> Coywolf Qi Hunt wrote:
> > 2006/2/12, akpm@osdl.org <akpm@osdl.org>:
> > 
> >>The patch titled
> >>
> >>     vmscan: rename functions
> >>
> >>has been added to the -mm tree.  Its filename is
> >>
> >>     vmscan-rename-functions.patch
> >>
> >>See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find
> >>out what to do about this
> >>
> >>
> >>From: Andrew Morton <akpm@osdl.org>
> >>
> >>We have:
> >>
> >>        try_to_free_pages
> >>        ->shrink_caches(struct zone **zones, ..)
> >>          ->shrink_zone(struct zone *, ...)
> >>            ->shrink_cache(struct zone *, ...)
> >>              ->shrink_list(struct list_head *, ...)
> >>
> >>which is fairly irrational.
> >>
> >>Rename things so that we have
> >>
> >>        try_to_free_pages
> >>        ->shrink_zones(struct zone **zones, ..)
> >>          ->shrink_zone(struct zone *, ...)
> >>            ->do_shrink_zone(struct zone *, ...)
> >>              ->shrink_page_list(struct list_head *, ...)
> > 
> > 
> > Every time I read this part it annoys me. Thanks.
> 
> I don't much care, but if there is renaming afoot, I'd vote for
> 
> ->shrink_zones(struct zone **zones, ..)
>   ->shrink_zone(struct zone *, ...)
>    ->shrink_inactive_list(struct zone *, ...)
>     ->shrink_page_list(struct list_head *, ...)
>    ->shrink_active_list (alternatively, leave as refill_inactive_list)
> 
> shrink_zone and do_shrink_zone don't really say any more to me than
> shrink_zone and shrink_cache.

I know not everybody believes in a plugable reclaim policy, but that is
what I'm building. And from that POV I'd rather not see the
active/inactive names get used here.

My vote goes to Coywolf's suggestion.

Peter


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: + vmscan-rename-functions.patch added to -mm tree
  2006-02-15  6:46     ` Peter Zijlstra
@ 2006-02-15  8:35       ` Nick Piggin
  2006-02-15 11:59         ` Peter Zijlstra
  0 siblings, 1 reply; 5+ messages in thread
From: Nick Piggin @ 2006-02-15  8:35 UTC (permalink / raw)
  To: Peter Zijlstra; +Cc: Coywolf Qi Hunt, linux-kernel, akpm, christoph

Peter Zijlstra wrote:
> On Wed, 2006-02-15 at 14:09 +1100, Nick Piggin wrote:

>>shrink_zone and do_shrink_zone don't really say any more to me than
>>shrink_zone and shrink_cache.
> 
> 
> I know not everybody believes in a plugable reclaim policy, but that is
> what I'm building. And from that POV I'd rather not see the
> active/inactive names get used here.
> 

active/inactive is what we have now. If you manage to get a pluggable
reclaim policy merged then I assure you, renaming these yet again will
be the least of your worries :)

> My vote goes to Coywolf's suggestion.
> 

What was that?

-- 
SUSE Labs, Novell Inc.
Send instant messages to your online friends http://au.messenger.yahoo.com 

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: + vmscan-rename-functions.patch added to -mm tree
  2006-02-15  8:35       ` Nick Piggin
@ 2006-02-15 11:59         ` Peter Zijlstra
  0 siblings, 0 replies; 5+ messages in thread
From: Peter Zijlstra @ 2006-02-15 11:59 UTC (permalink / raw)
  To: Nick Piggin; +Cc: Coywolf Qi Hunt, linux-kernel, akpm, christoph

On Wed, 2006-02-15 at 19:35 +1100, Nick Piggin wrote:
> Peter Zijlstra wrote:
> > On Wed, 2006-02-15 at 14:09 +1100, Nick Piggin wrote:
> 
> >>shrink_zone and do_shrink_zone don't really say any more to me than
> >>shrink_zone and shrink_cache.
> > 
> > 
> > I know not everybody believes in a plugable reclaim policy, but that is
> > what I'm building. And from that POV I'd rather not see the
> > active/inactive names get used here.
> > 
> 
> active/inactive is what we have now. If you manage to get a pluggable
> reclaim policy merged then I assure you, renaming these yet again will
> be the least of your worries :)

True indeed.

> > My vote goes to Coywolf's suggestion.
> > 
> 
> What was that?

Hmm, seems like I shouldn't read email before waking up, apparently I
got the quoting levels mixed up.

Anyway, this one:

>>        try_to_free_pages
>>        ->shrink_zones(struct zone **zones, ..)
>>          ->shrink_zone(struct zone *, ...)
>>            ->do_shrink_zone(struct zone *, ...)
>>              ->shrink_page_list(struct list_head *, ...)



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2006-02-15 11:59 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <200602120605.k1C65QFE028051@shell0.pdx.osdl.net>
2006-02-15  2:47 ` + vmscan-rename-functions.patch added to -mm tree Coywolf Qi Hunt
2006-02-15  3:09   ` Nick Piggin
2006-02-15  6:46     ` Peter Zijlstra
2006-02-15  8:35       ` Nick Piggin
2006-02-15 11:59         ` Peter Zijlstra

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox