btrfs: Remove btrfs_wait_and_free_delalloc_work
authorNikolay Borisov <nborisov@suse.com>
Thu, 19 Apr 2018 07:46:39 +0000 (10:46 +0300)
committerDavid Sterba <dsterba@suse.com>
Mon, 28 May 2018 16:07:20 +0000 (18:07 +0200)
commit40012f96b6765e588d8ffd7508d492339f2b9212
tree36f18c7debed05ce37132c9c9105a66ef27d250b
parent8ae225a8a4f9054ffc6566e14aaf05dfc559743e
btrfs: Remove btrfs_wait_and_free_delalloc_work

This function is called from only 1 place and is effectively a wrapper
over wait_completion/kfree. It doesn't really bring any value having
those two calls in a separate function. Just open code it and remove it.
No functional changes.

Signed-off-by: Nikolay Borisov <nborisov@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/ctree.h
fs/btrfs/inode.c