diff options
author | David Sterba <dsterba@suse.com> | 2017-11-08 03:07:43 +0300 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2018-01-22 18:08:14 +0300 |
commit | 7c2871a2f4695fadc35ea463552b23180c7a7e34 (patch) | |
tree | ac95984e01d8a7ae3f287d0411ab40e01b72c5c1 /fs/btrfs/inode.c | |
parent | bf46f52db96795e0c10292d55888640ab57f42c7 (diff) | |
download | linux-7c2871a2f4695fadc35ea463552b23180c7a7e34.tar.xz |
btrfs: switch btrfs_trans_handle::adding_csums to bool
The semantics of adding_csums matches bool, 'short' was most likely used
to save space in a698d0755adb6f2 ("Btrfs: add a type field for the
transaction handle").
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/inode.c')
-rw-r--r-- | fs/btrfs/inode.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c index 70a75b5f3046..1c704eb82487 100644 --- a/fs/btrfs/inode.c +++ b/fs/btrfs/inode.c @@ -2036,10 +2036,10 @@ static noinline int add_pending_csums(struct btrfs_trans_handle *trans, struct btrfs_ordered_sum *sum; list_for_each_entry(sum, list, list) { - trans->adding_csums = 1; + trans->adding_csums = true; btrfs_csum_file_blocks(trans, BTRFS_I(inode)->root->fs_info->csum_root, sum); - trans->adding_csums = 0; + trans->adding_csums = false; } return 0; } |