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 a698d0755a
("Btrfs: add a type field for the
transaction handle").
Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
bf46f52db9
commit
7c2871a2f4
fs/btrfs
|
@ -2036,10 +2036,10 @@ static noinline int add_pending_csums(struct btrfs_trans_handle *trans,
|
||||||
struct btrfs_ordered_sum *sum;
|
struct btrfs_ordered_sum *sum;
|
||||||
|
|
||||||
list_for_each_entry(sum, list, list) {
|
list_for_each_entry(sum, list, list) {
|
||||||
trans->adding_csums = 1;
|
trans->adding_csums = true;
|
||||||
btrfs_csum_file_blocks(trans,
|
btrfs_csum_file_blocks(trans,
|
||||||
BTRFS_I(inode)->root->fs_info->csum_root, sum);
|
BTRFS_I(inode)->root->fs_info->csum_root, sum);
|
||||||
trans->adding_csums = 0;
|
trans->adding_csums = false;
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -118,7 +118,7 @@ struct btrfs_trans_handle {
|
||||||
struct btrfs_block_rsv *block_rsv;
|
struct btrfs_block_rsv *block_rsv;
|
||||||
struct btrfs_block_rsv *orig_rsv;
|
struct btrfs_block_rsv *orig_rsv;
|
||||||
short aborted;
|
short aborted;
|
||||||
short adding_csums;
|
bool adding_csums;
|
||||||
bool allocating_chunk;
|
bool allocating_chunk;
|
||||||
bool can_flush_pending_bgs;
|
bool can_flush_pending_bgs;
|
||||||
bool reloc_reserved;
|
bool reloc_reserved;
|
||||||
|
|
Loading…
Reference in New Issue