Skip to content

Commit

Permalink
mm/migrate.c: remove the unused macro lru_to_page
Browse files Browse the repository at this point in the history
lru_to_page is not used in mm/migrate.c.

Signed-off-by: Wang Sheng-Hui <shhuiw@gmail.com>
Acked-by: Mel Gorman <mgorman@suse.de>
Acked-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Wang Sheng-Hui authored and Linus Torvalds committed Jan 11, 2012
1 parent ea5768c commit faed836
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions mm/migrate.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit faed836

Please sign in to comment.