]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: sink wait_for_unblock parameter to async commit
authorDavid Sterba <dsterba@suse.com>
Thu, 3 Jun 2021 15:20:21 +0000 (17:20 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 21 Jun 2021 13:19:11 +0000 (15:19 +0200)
commit5aa3b19c61b3feb94f88c43225ee5dbe80921bcc
tree0cc9a1f12e6c21dde6daa83ace900786c8af792e
parent1e3d46183247620b039d6d04fe3607e742aef919
btrfs: sink wait_for_unblock parameter to async commit

There's only one caller left btrfs_ioctl_start_sync that passes 0, so we
can remove the switch in btrfs_commit_transaction_async.

A cleanup 39c6913815b5 ("btrfs: Remove async_transid from
btrfs_mksubvol/create_subvol/create_snapshot") removed calls that passed
1, so this is a followup.

As this removes last call of wait_current_trans_commit_start_and_unblock,
remove the function as well.

Reviewed-by: Anand Jain <anand.jain@oracle.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/ioctl.c
fs/btrfs/transaction.c
fs/btrfs/transaction.h