aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/disk-io.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/btrfs/disk-io.c')
-rw-r--r--fs/btrfs/disk-io.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c
index 4c4ebea0b2a9..e29a0716f6a9 100644
--- a/fs/btrfs/disk-io.c
+++ b/fs/btrfs/disk-io.c
@@ -274,7 +274,7 @@ int btree_readpage(struct file *file, struct page *page)
274 return extent_read_full_page(tree, page, btree_get_extent); 274 return extent_read_full_page(tree, page, btree_get_extent);
275} 275}
276 276
277static int btree_releasepage(struct page *page, gfp_t unused_gfp_flags) 277static int btree_releasepage(struct page *page, gfp_t gfp_flags)
278{ 278{
279 struct extent_io_tree *tree; 279 struct extent_io_tree *tree;
280 struct extent_map_tree *map; 280 struct extent_map_tree *map;
@@ -282,7 +282,7 @@ static int btree_releasepage(struct page *page, gfp_t unused_gfp_flags)
282 282
283 tree = &BTRFS_I(page->mapping->host)->io_tree; 283 tree = &BTRFS_I(page->mapping->host)->io_tree;
284 map = &BTRFS_I(page->mapping->host)->extent_tree; 284 map = &BTRFS_I(page->mapping->host)->extent_tree;
285 ret = try_release_extent_mapping(map, tree, page); 285 ret = try_release_extent_mapping(map, tree, page, gfp_flags);
286 if (ret == 1) { 286 if (ret == 1) {
287 ClearPagePrivate(page); 287 ClearPagePrivate(page);
288 set_page_private(page, 0); 288 set_page_private(page, 0);