Commit dec8f175 authored by Filipe Manana's avatar Filipe Manana Committed by Chris Mason

Btrfs: make inode.c:submit_compressed_extents() return void

Its return value is completely ignored by its single caller and it's
useless anyway, since errors are indicated through SetPageError and
the bit AS_EIO set in the flags of the inode's mapping. The caller
can't do anything with the value, as it's invoked from a workqueue
task and not by the task calling filemap_fdatawrite_range (which calls
the writepages address space callback, which in turn calls the inode's
fill_delalloc callback).
Signed-off-by: default avatarFilipe Manana <fdmanana@suse.com>
Signed-off-by: default avatarChris Mason <clm@fb.com>
parent 3d7a820f
...@@ -655,7 +655,7 @@ static void free_async_extent_pages(struct async_extent *async_extent) ...@@ -655,7 +655,7 @@ static void free_async_extent_pages(struct async_extent *async_extent)
* queued. We walk all the async extents created by compress_file_range * queued. We walk all the async extents created by compress_file_range
* and send them down to the disk. * and send them down to the disk.
*/ */
static noinline int submit_compressed_extents(struct inode *inode, static noinline void submit_compressed_extents(struct inode *inode,
struct async_cow *async_cow) struct async_cow *async_cow)
{ {
struct async_extent *async_extent; struct async_extent *async_extent;
...@@ -667,9 +667,6 @@ static noinline int submit_compressed_extents(struct inode *inode, ...@@ -667,9 +667,6 @@ static noinline int submit_compressed_extents(struct inode *inode,
struct extent_io_tree *io_tree; struct extent_io_tree *io_tree;
int ret = 0; int ret = 0;
if (list_empty(&async_cow->extents))
return 0;
again: again:
while (!list_empty(&async_cow->extents)) { while (!list_empty(&async_cow->extents)) {
async_extent = list_entry(async_cow->extents.next, async_extent = list_entry(async_cow->extents.next,
...@@ -841,7 +838,7 @@ static noinline int submit_compressed_extents(struct inode *inode, ...@@ -841,7 +838,7 @@ static noinline int submit_compressed_extents(struct inode *inode,
kfree(async_extent); kfree(async_extent);
cond_resched(); cond_resched();
} }
return 0; return;
out_free_reserve: out_free_reserve:
btrfs_free_reserved_extent(root, ins.objectid, ins.offset, 1); btrfs_free_reserved_extent(root, ins.objectid, ins.offset, 1);
out_free: out_free:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment