btrfs: fix uninitialized variable warning in btrfs_update_block_group
authorJosef Bacik <josef@toxicpanda.com>
Fri, 16 Dec 2022 20:15:54 +0000 (15:15 -0500)
committerDavid Sterba <dsterba@suse.com>
Mon, 13 Feb 2023 16:50:33 +0000 (17:50 +0100)
commitefbf35a102b20246cfe4409c6ae92e72ecb67ab8
treef2bf720785389c5c92a595a6d1051cbf3fb98129
parentab199013592abb3499b8316a800a39ab61e6719f
btrfs: fix uninitialized variable warning in btrfs_update_block_group

reclaim isn't set in the alloc case, however we only care about
reclaim in the !alloc case.  This isn't an actual problem, however
-Wmaybe-uninitialized will complain, so initialize reclaim to quiet the
compiler.

Reviewed-by: Qu Wenruo <wqu@suse.com>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: Josef Bacik <josef@toxicpanda.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/block-group.c