diff options
Diffstat (limited to 'fs/btrfs/inode.c')
-rw-r--r-- | fs/btrfs/inode.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c index d1a52850d17d..6fed30c3f9ce 100644 --- a/fs/btrfs/inode.c +++ b/fs/btrfs/inode.c | |||
@@ -655,7 +655,7 @@ static void free_async_extent_pages(struct async_extent *async_extent) | |||
655 | * queued. We walk all the async extents created by compress_file_range | 655 | * queued. We walk all the async extents created by compress_file_range |
656 | * and send them down to the disk. | 656 | * and send them down to the disk. |
657 | */ | 657 | */ |
658 | static noinline int submit_compressed_extents(struct inode *inode, | 658 | static noinline void submit_compressed_extents(struct inode *inode, |
659 | struct async_cow *async_cow) | 659 | struct async_cow *async_cow) |
660 | { | 660 | { |
661 | struct async_extent *async_extent; | 661 | struct async_extent *async_extent; |
@@ -667,9 +667,6 @@ static noinline int submit_compressed_extents(struct inode *inode, | |||
667 | struct extent_io_tree *io_tree; | 667 | struct extent_io_tree *io_tree; |
668 | int ret = 0; | 668 | int ret = 0; |
669 | 669 | ||
670 | if (list_empty(&async_cow->extents)) | ||
671 | return 0; | ||
672 | |||
673 | again: | 670 | again: |
674 | while (!list_empty(&async_cow->extents)) { | 671 | while (!list_empty(&async_cow->extents)) { |
675 | async_extent = list_entry(async_cow->extents.next, | 672 | async_extent = list_entry(async_cow->extents.next, |
@@ -841,7 +838,7 @@ retry: | |||
841 | kfree(async_extent); | 838 | kfree(async_extent); |
842 | cond_resched(); | 839 | cond_resched(); |
843 | } | 840 | } |
844 | return 0; | 841 | return; |
845 | out_free_reserve: | 842 | out_free_reserve: |
846 | btrfs_free_reserved_extent(root, ins.objectid, ins.offset, 1); | 843 | btrfs_free_reserved_extent(root, ins.objectid, ins.offset, 1); |
847 | out_free: | 844 | out_free: |