aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/extent_io.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2008-09-05 16:43:31 -0400
committerChris Mason <chris.mason@oracle.com>2008-09-25 11:04:07 -0400
commitb214107eda845f9a5851ae198f5b972e0dc30c45 (patch)
tree9ca3127891a90b72f72477b48217d05fdfcaa83c /fs/btrfs/extent_io.c
parenta237d2a2bd67eb2b57b87c1e1d3d802d078d4ba7 (diff)
Btrfs: trivial sparse fixes
Fix a bunch of trivial sparse complaints. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Chris Mason <chris.mason@oracle.com>
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: