aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/extent_io.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/btrfs/extent_io.c')
-rw-r--r--fs/btrfs/extent_io.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/fs/btrfs/extent_io.c b/fs/btrfs/extent_io.c
index 7ca89c45d401..239e7c908abf 100644
--- a/fs/btrfs/extent_io.c
+++ b/fs/btrfs/extent_io.c
@@ -3400,10 +3400,8 @@ int try_release_extent_buffer(struct extent_io_tree *tree, struct page *page)
3400 } 3400 }
3401 /* at this point we can safely release the extent buffer */ 3401 /* at this point we can safely release the extent buffer */
3402 num_pages = num_extent_pages(eb->start, eb->len); 3402 num_pages = num_extent_pages(eb->start, eb->len);
3403 for (i = 0; i < num_pages; i++) { 3403 for (i = 0; i < num_pages; i++)
3404 struct page *page = extent_buffer_page(eb, i); 3404 page_cache_release(extent_buffer_page(eb, i));
3405 page_cache_release(page);
3406 }
3407 rb_erase(&eb->rb_node, &tree->buffer); 3405 rb_erase(&eb->rb_node, &tree->buffer);
3408 __free_extent_buffer(eb); 3406 __free_extent_buffer(eb);
3409out: 3407out: