From: Johann Lombardi Date: Thu, 7 Apr 2011 18:55:29 +0000 (-0700) Subject: LU-130 disable page migration X-Git-Tag: 2.0.60.0~17 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=31eea565c0f94f23455d6f9d2bb926a4a53f5b6c LU-130 disable page migration Disable page migration until we implement a proper ->migratepage handler. Change-Id: Ia98397db2ed6f6149b2708805320a5e929734308 Signed-off-by: Johann Lombardi Reviewed-on: http://review.whamcloud.com/399 Tested-by: Hudson Reviewed-by: Oleg Drokin Reviewed-by: Lai Siyao --- diff --git a/lustre/llite/rw26.c b/lustre/llite/rw26.c index 3475469..d2137f7 100644 --- a/lustre/llite/rw26.c +++ b/lustre/llite/rw26.c @@ -507,6 +507,15 @@ static int ll_write_end(struct file *file, struct address_space *mapping, } #endif +#ifdef CONFIG_MIGRATION +int ll_migratepage(struct address_space *mapping, + struct page *newpage, struct page *page) +{ + /* Always fail page migration until we have a proper implementation */ + return -EIO; +} +#endif + struct address_space_operations ll_aops = { .readpage = ll_readpage, // .readpages = ll_readpages, @@ -524,5 +533,8 @@ struct address_space_operations ll_aops = { #endif .invalidatepage = ll_invalidatepage, .releasepage = (void *)ll_releasepage, +#ifdef CONFIG_MIGRATION + .migratepage = ll_migratepage, +#endif .bmap = NULL };