Patch "btrfs: fix uninitialized variable warning in btrfs_update_block_group" has been added to the 6.2-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    btrfs: fix uninitialized variable warning in btrfs_update_block_group

to the 6.2-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     btrfs-fix-uninitialized-variable-warning-in-btrfs_up.patch
and it can be found in the queue-6.2 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit 6d30334c0b85a37a38d8572d5f647a79587000d1
Author: Josef Bacik <josef@xxxxxxxxxxxxxx>
Date:   Fri Dec 16 15:15:54 2022 -0500

    btrfs: fix uninitialized variable warning in btrfs_update_block_group
    
    [ Upstream commit efbf35a102b20246cfe4409c6ae92e72ecb67ab8 ]
    
    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@xxxxxxxx>
    Reviewed-by: Johannes Thumshirn <johannes.thumshirn@xxxxxxx>
    Signed-off-by: Josef Bacik <josef@xxxxxxxxxxxxxx>
    Reviewed-by: David Sterba <dsterba@xxxxxxxx>
    Signed-off-by: David Sterba <dsterba@xxxxxxxx>
    Stable-dep-of: df384da5a49c ("btrfs: use temporary variable for space_info in btrfs_update_block_group")
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/fs/btrfs/block-group.c b/fs/btrfs/block-group.c
index 8eb625318e785..f40e56d44276d 100644
--- a/fs/btrfs/block-group.c
+++ b/fs/btrfs/block-group.c
@@ -3336,7 +3336,7 @@ int btrfs_update_block_group(struct btrfs_trans_handle *trans,
 	spin_unlock(&info->delalloc_root_lock);
 
 	while (total) {
-		bool reclaim;
+		bool reclaim = false;
 
 		cache = btrfs_lookup_block_group(info, bytenr);
 		if (!cache) {



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux