btrfs: Return bool from should_end_transaction
PATCH 1/1 btrfs: Return bool from should_end_transaction
Signed-off-by Nikolay Borisov <[email protected]>
--- fs/btrfs/transaction.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
fs/btrfs/transaction.c +2 -2
@@ -897,12 +897,12 @@ void btrfs_throttle(struct btrfs_fs_info *fs_info)wait_current_trans (fs_info); } -static int should_end_transaction (struct btrfs_trans_handle *trans) +static bool should_end_transaction (struct btrfs_trans_handle *trans) {struct btrfs_fs_info *fs_info = trans->fs_info;if (btrfs_check_space_for_delayed_refs (fs_info)) -return 1 ; +return true;return !!btrfs_block_rsv_check (&fs_info->global_block_rsv,5 ); }
--
2.25.1
Quoted 1 line · Nikolay Borisov
Signed-off-by Nikolay Borisov <[email protected]>
Added to msic-next, thanks.