diff options
author | Lu Fengqi <lufq.fnst@cn.fujitsu.com> | 2018-08-04 15:10:55 +0200 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2018-10-15 17:23:25 +0200 |
commit | 3a58417486ca99a3bfef40e309f38adb45a5171d (patch) | |
tree | 5efe3aee55b065defda7aa3a10692167a6affc0d /fs/btrfs/inode.c | |
parent | btrfs: simplify the send_in_progress check in btrfs_delete_subvolume (diff) | |
download | linux-3a58417486ca99a3bfef40e309f38adb45a5171d.tar.xz linux-3a58417486ca99a3bfef40e309f38adb45a5171d.zip |
btrfs: switch update_size to bool in btrfs_block_rsv_migrate and btrfs_rsv_add_bytes
Using true and false here is closer to the expected semantic than using
0 and 1. No functional change.
Signed-off-by: Lu Fengqi <lufq.fnst@cn.fujitsu.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/inode.c')
-rw-r--r-- | fs/btrfs/inode.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c index 8b3d719e229d..bc3d0e0c43a5 100644 --- a/fs/btrfs/inode.c +++ b/fs/btrfs/inode.c @@ -5334,7 +5334,7 @@ static struct btrfs_trans_handle *evict_refill_and_join(struct btrfs_root *root, * it. */ if (!btrfs_check_space_for_delayed_refs(trans, fs_info) && - !btrfs_block_rsv_migrate(global_rsv, rsv, min_size, 0)) + !btrfs_block_rsv_migrate(global_rsv, rsv, min_size, false)) return trans; /* If not, commit and try again. */ @@ -9020,7 +9020,7 @@ static int btrfs_truncate(struct inode *inode, bool skip_writeback) /* Migrate the slack space for the truncate to our reserve */ ret = btrfs_block_rsv_migrate(&fs_info->trans_block_rsv, rsv, - min_size, 0); + min_size, false); BUG_ON(ret); /* @@ -9057,7 +9057,7 @@ static int btrfs_truncate(struct inode *inode, bool skip_writeback) btrfs_block_rsv_release(fs_info, rsv, -1); ret = btrfs_block_rsv_migrate(&fs_info->trans_block_rsv, - rsv, min_size, 0); + rsv, min_size, false); BUG_ON(ret); /* shouldn't happen */ trans->block_rsv = rsv; } |