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)
commit32cc4f8759e19661e3a349419f0bcf6dcfddd323
tree0cc9a1f12e6c21dde6daa83ace900786c8af792e
parentbfaa324e9a8073f539e5cf2d4fe14fe55e317525
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 9babda9f33fd ("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