Whamcloud - gitweb
LU-130 disable page migration
authorJohann Lombardi <johann@whamcloud.com>
Thu, 7 Apr 2011 18:55:29 +0000 (11:55 -0700)
committerOleg Drokin <green@whamcloud.com>
Tue, 3 May 2011 14:39:07 +0000 (07:39 -0700)
Disable page migration until we implement a proper ->migratepage handler.

Change-Id: Ia98397db2ed6f6149b2708805320a5e929734308
Signed-off-by: Johann Lombardi <johann@whamcloud.com>
Reviewed-on: http://review.whamcloud.com/399
Tested-by: Hudson
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Reviewed-by: Lai Siyao <laisiyao@whamcloud.com>
lustre/llite/rw26.c

index 3475469..d2137f7 100644 (file)
@@ -507,6 +507,15 @@ static int ll_write_end(struct file *file, struct address_space *mapping,
 }
 #endif
 
 }
 #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,
 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,
 #endif
         .invalidatepage = ll_invalidatepage,
         .releasepage    = (void *)ll_releasepage,
+#ifdef CONFIG_MIGRATION
+        .migratepage    = ll_migratepage,
+#endif
         .bmap           = NULL
 };
         .bmap           = NULL
 };