aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/block-rsv.h
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2022-06-23 17:08:14 +0200
committerDavid Sterba <dsterba@suse.com>2022-07-25 17:45:40 +0200
commitc70c2c5bc9a14166a409f18567815d3bc426ebbb (patch)
tree4aa042e21d27d06f0d8e391700e753e60e2a7260 /fs/btrfs/block-rsv.h
parentbtrfs: do not return errors from btrfs_submit_dio_bio (diff)
downloadlinux-dev-c70c2c5bc9a14166a409f18567815d3bc426ebbb.tar.xz
linux-dev-c70c2c5bc9a14166a409f18567815d3bc426ebbb.zip
btrfs: switch btrfs_block_rsv::full to bool
Use simple bool type for the block reserve full status, there's short to save space as there used to be int but there's no reason for that. Reviewed-by: Anand Jain <anand.jain@oracle.com> Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/block-rsv.h')
-rw-r--r--fs/btrfs/block-rsv.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/block-rsv.h b/fs/btrfs/block-rsv.h
index 3b67ff08d434..99c491ef128e 100644
--- a/fs/btrfs/block-rsv.h
+++ b/fs/btrfs/block-rsv.h
@@ -25,7 +25,7 @@ struct btrfs_block_rsv {
u64 reserved;
struct btrfs_space_info *space_info;
spinlock_t lock;
- unsigned short full;
+ bool full;
unsigned short type;
unsigned short failfast;