linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] mm/migrate.c: remove the unused macro lru_to_page
@ 2011-12-28  3:07 Wang Sheng-Hui
  2011-12-30 15:15 ` Mel Gorman
  0 siblings, 1 reply; 3+ messages in thread
From: Wang Sheng-Hui @ 2011-12-28  3:07 UTC (permalink / raw)
  To: Andrew Morton, Mel Gorman, Minchan Kim, Hugh Dickins,
	Johannes Weiner, linux-mm, linux-kernel

lru_to_page is not used in mm/migrate.c. Drop it.

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

diff --git a/mm/migrate.c b/mm/migrate.c
index 640002a..99da494 100644
--- a/mm/migrate.c
+++ b/mm/migrate.c
@@ -39,8 +39,6 @@
 
 #include "internal.h"
 
-#define lru_to_page(_head) (list_entry((_head)->prev, struct page, lru))
-
 /*
  * migrate_prep() needs to be called before we start compiling a list of pages
  * to be migrated using isolate_lru_page(). If scheduling work on other CPUs is
-- 
1.7.1

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

* Re: [PATCH] mm/migrate.c: remove the unused macro lru_to_page
  2011-12-28  3:07 [PATCH] mm/migrate.c: remove the unused macro lru_to_page Wang Sheng-Hui
@ 2011-12-30 15:15 ` Mel Gorman
  2012-01-02  2:25   ` Kyungmin Park
  0 siblings, 1 reply; 3+ messages in thread
From: Mel Gorman @ 2011-12-30 15:15 UTC (permalink / raw)
  To: Wang Sheng-Hui
  Cc: Andrew Morton, Minchan Kim, Hugh Dickins, Johannes Weiner,
	linux-mm, linux-kernel

On Wed, Dec 28, 2011 at 11:07:16AM +0800, Wang Sheng-Hui wrote:
> lru_to_page is not used in mm/migrate.c. Drop it.
> 
> Signed-off-by: Wang Sheng-Hui <shhuiw@gmail.com>

Acked-by: Mel Gorman <mgorman@suse.de>

-- 
Mel Gorman
SUSE Labs

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

* Re: [PATCH] mm/migrate.c: remove the unused macro lru_to_page
  2011-12-30 15:15 ` Mel Gorman
@ 2012-01-02  2:25   ` Kyungmin Park
  0 siblings, 0 replies; 3+ messages in thread
From: Kyungmin Park @ 2012-01-02  2:25 UTC (permalink / raw)
  To: Mel Gorman
  Cc: Wang Sheng-Hui, Andrew Morton, Minchan Kim, Hugh Dickins,
	Johannes Weiner, linux-mm, linux-kernel

On 12/31/11, Mel Gorman <mgorman@suse.de> wrote:
> On Wed, Dec 28, 2011 at 11:07:16AM +0800, Wang Sheng-Hui wrote:
>> lru_to_page is not used in mm/migrate.c. Drop it.
>>
>> Signed-off-by: Wang Sheng-Hui <shhuiw@gmail.com>
>
> Acked-by: Mel Gorman <mgorman@suse.de>
Acked-by: Kyungmin Park <kyungmin.park@samsung.com>
> --
> Mel Gorman
> SUSE Labs
>
> --
> 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] 3+ messages in thread

end of thread, other threads:[~2012-01-02  2:25 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-12-28  3:07 [PATCH] mm/migrate.c: remove the unused macro lru_to_page Wang Sheng-Hui
2011-12-30 15:15 ` Mel Gorman
2012-01-02  2:25   ` Kyungmin Park

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).