diff options
author | Andrew Morton <akpm@linux-foundation.org> | 2014-10-09 18:27:59 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-10-09 22:25:56 -0400 |
commit | 1c93923cc264105418e6ead149c76bd88302eff4 (patch) | |
tree | 1862aef87b2636d01b55f4ccbac7542fbe016060 /mm/swap_state.c | |
parent | dd6eecb917938c1b7e505a83df307b3476e7c8bd (diff) |
include/linux/migrate.h: remove migrate_page #define
This is designed to avoid a few ifdefs in .c files but it's obnoxious
because it can cause unsuspecting "migrate_page" symbols to get turned into
"NULL".
Just nuke it and use the ifdefs.
Cc: Konstantin Khlebnikov <k.khlebnikov@samsung.com>
Cc: Rafael Aquini <aquini@redhat.com>
Cc: Andrey Ryabinin <ryabinin.a.a@gmail.com>
Cc: Mel Gorman <mel@csn.ul.ie>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/swap_state.c')
-rw-r--r-- | mm/swap_state.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/mm/swap_state.c b/mm/swap_state.c index 3e0ec83d000c..ef1f39139b71 100644 --- a/mm/swap_state.c +++ b/mm/swap_state.c | |||
@@ -28,7 +28,9 @@ | |||
28 | static const struct address_space_operations swap_aops = { | 28 | static const struct address_space_operations swap_aops = { |
29 | .writepage = swap_writepage, | 29 | .writepage = swap_writepage, |
30 | .set_page_dirty = swap_set_page_dirty, | 30 | .set_page_dirty = swap_set_page_dirty, |
31 | #ifdef CONFIG_MIGRATION | ||
31 | .migratepage = migrate_page, | 32 | .migratepage = migrate_page, |
33 | #endif | ||
32 | }; | 34 | }; |
33 | 35 | ||
34 | static struct backing_dev_info swap_backing_dev_info = { | 36 | static struct backing_dev_info swap_backing_dev_info = { |