aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/compression.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/btrfs/compression.c')
-rw-r--r--fs/btrfs/compression.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/btrfs/compression.c b/fs/btrfs/compression.c
index 0ed1ed22775f..cfd158dccdec 100644
--- a/fs/btrfs/compression.c
+++ b/fs/btrfs/compression.c
@@ -496,7 +496,7 @@ static noinline int add_ra_bio_pages(struct inode *inode,
496 * sure they map to this compressed extent on disk. 496 * sure they map to this compressed extent on disk.
497 */ 497 */
498 set_page_extent_mapped(page); 498 set_page_extent_mapped(page);
499 lock_extent(tree, last_offset, end, GFP_NOFS); 499 lock_extent(tree, last_offset, end);
500 read_lock(&em_tree->lock); 500 read_lock(&em_tree->lock);
501 em = lookup_extent_mapping(em_tree, last_offset, 501 em = lookup_extent_mapping(em_tree, last_offset,
502 PAGE_CACHE_SIZE); 502 PAGE_CACHE_SIZE);
@@ -506,7 +506,7 @@ static noinline int add_ra_bio_pages(struct inode *inode,
506 (last_offset + PAGE_CACHE_SIZE > extent_map_end(em)) || 506 (last_offset + PAGE_CACHE_SIZE > extent_map_end(em)) ||
507 (em->block_start >> 9) != cb->orig_bio->bi_sector) { 507 (em->block_start >> 9) != cb->orig_bio->bi_sector) {
508 free_extent_map(em); 508 free_extent_map(em);
509 unlock_extent(tree, last_offset, end, GFP_NOFS); 509 unlock_extent(tree, last_offset, end);
510 unlock_page(page); 510 unlock_page(page);
511 page_cache_release(page); 511 page_cache_release(page);
512 break; 512 break;
@@ -534,7 +534,7 @@ static noinline int add_ra_bio_pages(struct inode *inode,
534 nr_pages++; 534 nr_pages++;
535 page_cache_release(page); 535 page_cache_release(page);
536 } else { 536 } else {
537 unlock_extent(tree, last_offset, end, GFP_NOFS); 537 unlock_extent(tree, last_offset, end);
538 unlock_page(page); 538 unlock_page(page);
539 page_cache_release(page); 539 page_cache_release(page);
540 break; 540 break;