Skip to content

Commit

Permalink
btrfs: Remove inode argument from async_cow_submit
Browse files Browse the repository at this point in the history
We already pass the async_cow struct that holds a reference to the
inode. Exploit this fact and remove the extra inode argument. No
functional changes.

Reviewed-by: Anand Jain <anand.jain@oracle.com>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Nikolay Borisov <nborisov@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
  • Loading branch information
Nikolay Borisov authored and David Sterba committed Feb 25, 2019
1 parent aa704d4 commit 532425f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions fs/btrfs/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -714,9 +714,9 @@ static void free_async_extent_pages(struct async_extent *async_extent)
* queued. We walk all the async extents created by compress_file_range
* and send them down to the disk.
*/
static noinline void submit_compressed_extents(struct inode *inode,
struct async_cow *async_cow)
static noinline void submit_compressed_extents(struct async_cow *async_cow)
{
struct inode *inode = async_cow->inode;
struct btrfs_fs_info *fs_info = btrfs_sb(inode->i_sb);
struct async_extent *async_extent;
u64 alloc_hint = 0;
Expand Down Expand Up @@ -1167,7 +1167,7 @@ static noinline void async_cow_submit(struct btrfs_work *work)
cond_wake_up_nomb(&fs_info->async_submit_wait);

if (async_cow->inode)
submit_compressed_extents(async_cow->inode, async_cow);
submit_compressed_extents(async_cow);
}

static noinline void async_cow_free(struct btrfs_work *work)
Expand Down

0 comments on commit 532425f

Please sign in to comment.