Commit 0c45355f authored by Benjamin LaHaise's avatar Benjamin LaHaise
Browse files

aio: fix build when migration is disabled

When "fs/aio: Add support to aio ring pages migration" was applied, it
broke the build when CONFIG_MIGRATION was disabled.  Wrap the migration
code with a test for CONFIG_MIGRATION to fix this and save a few bytes
when migration is disabled.
Signed-off-by: default avatarBenjamin LaHaise <>
parent 36bc08cc
......@@ -181,6 +181,7 @@ static int aio_set_page_dirty(struct page *page)
return 0;
static int aio_migratepage(struct address_space *mapping, struct page *new,
struct page *old, enum migrate_mode mode)
......@@ -208,10 +209,13 @@ static int aio_migratepage(struct address_space *mapping, struct page *new,
return rc;
static const struct address_space_operations aio_ctx_aops = {
.set_page_dirty = aio_set_page_dirty,
.migratepage = aio_migratepage,
static int aio_setup_ring(struct kioctx *ctx)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment