]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - include/linux/fs.h
[PATCH] Direct Migration V9: Avoid writeback / page_migrate() method
[karo-tx-linux.git] / include / linux / fs.h
index 84bb449b9b01734dd864df59008724805de550af..e059da9470076a7af7a2a68e76bd29605369e75a 100644 (file)
@@ -363,6 +363,8 @@ struct address_space_operations {
                        loff_t offset, unsigned long nr_segs);
        struct page* (*get_xip_page)(struct address_space *, sector_t,
                        int);
+       /* migrate the contents of a page to the specified target */
+       int (*migratepage) (struct page *, struct page *);
 };
 
 struct backing_dev_info;
@@ -1719,6 +1721,12 @@ extern void simple_release_fs(struct vfsmount **mount, int *count);
 
 extern ssize_t simple_read_from_buffer(void __user *, size_t, loff_t *, const void *, size_t);
 
+#ifdef CONFIG_MIGRATION
+extern int buffer_migrate_page(struct page *, struct page *);
+#else
+#define buffer_migrate_page NULL
+#endif
+
 extern int inode_change_ok(struct inode *, struct iattr *);
 extern int __must_check inode_setattr(struct inode *, struct iattr *);