diff options
Diffstat (limited to 'fs/btrfs/disk-io.c')
-rw-r--r-- | fs/btrfs/disk-io.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c index cf1de75f088a..e22960e23501 100644 --- a/fs/btrfs/disk-io.c +++ b/fs/btrfs/disk-io.c | |||
@@ -436,6 +436,12 @@ static int btree_releasepage(struct page *page, gfp_t gfp_flags) | |||
436 | struct extent_map_tree *map; | 436 | struct extent_map_tree *map; |
437 | int ret; | 437 | int ret; |
438 | 438 | ||
439 | if (page_count(page) > 3) { | ||
440 | /* once for page->private, once for the caller, once | ||
441 | * once for the page cache | ||
442 | */ | ||
443 | return 0; | ||
444 | } | ||
439 | tree = &BTRFS_I(page->mapping->host)->io_tree; | 445 | tree = &BTRFS_I(page->mapping->host)->io_tree; |
440 | map = &BTRFS_I(page->mapping->host)->extent_tree; | 446 | map = &BTRFS_I(page->mapping->host)->extent_tree; |
441 | ret = try_release_extent_mapping(map, tree, page, gfp_flags); | 447 | ret = try_release_extent_mapping(map, tree, page, gfp_flags); |