@@ -82,7 +82,8 @@ static inline void balloon_devinfo_init(struct balloon_dev_info *balloon)
extern const struct address_space_operations balloon_aops;
extern bool balloon_page_isolate(struct page *page,
isolate_mode_t mode);
-extern void balloon_page_putback(struct page *page);
+extern void balloon_page_putback(struct address_space *__mapping,
+ struct page *page);
extern int balloon_page_migrate(struct address_space *mapping,
struct page *newpage,
struct page *page, enum migrate_mode mode);
@@ -160,7 +161,8 @@ static inline bool balloon_page_isolate(struct page *page)
return false;
}
-static inline void balloon_page_putback(struct page *page)
+static inline void balloon_page_putback(struct address_space *__mapping,
+ struct page *page)
{
return;
}
@@ -409,7 +409,7 @@ struct address_space_operations {
int (*migratepage) (struct address_space *,
struct page *, struct page *, enum migrate_mode);
bool (*isolate_page)(struct page *, isolate_mode_t);
- void (*putback_page)(struct page *);
+ void (*putback_page)(struct address_space *, struct page *);
int (*launder_page) (struct page *);
int (*is_partially_uptodate) (struct page *, unsigned long,
unsigned long);
@@ -217,7 +217,7 @@ bool balloon_page_isolate(struct page *page, isolate_mode_t mode)
return true;
}
-void balloon_page_putback(struct page *page)
+void balloon_page_putback(struct address_space *__mapping, struct page *page)
{
struct balloon_dev_info *b_dev_info = balloon_page_device(page);
unsigned long flags;
@@ -154,7 +154,7 @@ void putback_movable_page(struct page *page)
VM_BUG_ON_PAGE(!PageIsolated(page), page);
mapping = page_mapping(page);
- mapping->a_ops->putback_page(page);
+ mapping->a_ops->putback_page(MAPPING_NULL, page);
__ClearPageIsolated(page);
}
@@ -1668,7 +1668,8 @@ static int z3fold_page_migrate(struct address_space *mapping, struct page *newpa
return 0;
}
-static void z3fold_page_putback(struct page *page)
+static void z3fold_page_putback(struct address_space *__mapping,
+ struct page *page)
{
struct z3fold_header *zhdr;
struct z3fold_pool *pool;
@@ -2099,7 +2099,8 @@ static int zs_page_migrate(struct address_space *mapping, struct page *newpage,
return ret;
}
-static void zs_page_putback(struct page *page)
+static void zs_page_putback(struct address_space *__mapping,
+ struct page *page)
{
struct zs_pool *pool;
struct size_class *class;