diff options
author | Nikolay Borisov <nborisov@suse.com> | 2020-11-24 17:49:08 +0300 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2020-12-08 17:54:15 +0300 |
commit | 8a8f4deaba79ca4cc0ae01f9a3b8f5594810de5e (patch) | |
tree | 6a3c8fc564cab558609bb16058aee70bc754abe3 /fs/btrfs/transaction.c | |
parent | 8df01fddb77998a46b1b59563e1c5d094dc2586a (diff) | |
download | linux-8a8f4deaba79ca4cc0ae01f9a3b8f5594810de5e.tar.xz |
btrfs: return bool from should_end_transaction
Signed-off-by: Nikolay Borisov <nborisov@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/transaction.c')
-rw-r--r-- | fs/btrfs/transaction.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/btrfs/transaction.c b/fs/btrfs/transaction.c index 0e4063651047..10338363754e 100644 --- a/fs/btrfs/transaction.c +++ b/fs/btrfs/transaction.c @@ -898,12 +898,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); } |