]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: rename check_async_write and let it return bool
authorJohannes Thumshirn <johannes.thumshirn@wdc.com>
Mon, 10 May 2021 15:17:26 +0000 (00:17 +0900)
committerDavid Sterba <dsterba@suse.com>
Mon, 21 Jun 2021 13:19:04 +0000 (15:19 +0200)
commitb3c4282862ca73415a07c6dc5953a1a0d7390fa3
tree06b4e52e642ec7aa40fa68ffc8e5e0067edb8989
parent9aace2f09a4e3564babfb63f04ef31841704fe31
btrfs: rename check_async_write and let it return bool

The 'check_async_write' function is a helper used in
'btrfs_submit_metadata_bio' and it checks if asynchronous writing can be
used for metadata.

Make the function return bool and get rid of the local variable async in
btrfs_submit_metadata_bio storing the result of check_async_write's
tests.

As this is touching all function call sites, also rename it to
should_async_write as this is more in line with the naming we use.

Signed-off-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/disk-io.c