Skip to contentSkip to conversation

Patch "btrfs: zoned: exit btrfs_can_activate_zone if BTRFS_FS_NEED_ZONE_FINISH is set" has been added to the 6.14-stable tree

DISCUSSION Johannes Thumshirn 2 participants 2 messages May 23, 2025 – May 27, 2025 1 message not in the archive Stable branch

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive
Quoted 7 lines · Sasha Levin

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

btrfs: zoned: exit btrfs_can_activate_zone if BTRFS_FS_NEED_ZONE_FINISH is set

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

Quoted 7 lines

The filename of the patch is:
btrfs-zoned-exit-btrfs_can_activate_zone-if-btrfs_fs.patch
and it can be found in the queue-6.14 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.

Hey Sasha,

this patch is just a readability cleanup, no reason to backport it.

Thanks,
Johannes

Quoted 35 lines

commit 1136d333d91088ecf2d5189367540a84e60449a0

Author: Johannes Thumshirn <[email protected]>
Date:   Wed Feb 12 15:05:00 2025 +0100

btrfs: zoned: exit btrfs_can_activate_zone if BTRFS_FS_NEED_ZONE_FINISH is set

[ Upstream commit 26b38e28162ef4ceb1e0482299820fbbd7dbcd92 ]

If BTRFS_FS_NEED_ZONE_FINISH is already set for the whole filesystem, exit early in btrfs_can_activate_zone(). There's no need to check if BTRFS_FS_NEED_ZONE_FINISH needs to be set if it is already set.

fs/btrfs/zoned.c +3 -0
index f39656668967c..4a3e02b49f295 100644
@@ -2344,6 +2344,9 @@ bool btrfs_can_activate_zone(struct btrfs_fs_devices *fs_devices, u64 flags)
  	if (!btrfs_is_zoned(fs_info))
  		return true;
 
+	if (test_bit(BTRFS_FS_NEED_ZONE_FINISH, &fs_info->flags))
+		return false;
+
  	/* Check if there is a device with active zones left */
  	mutex_lock(&fs_info->chunk_mutex);
  	spin_lock(&fs_info->zone_active_bgs_lock);
maintainer
#2 lore raw
Quoted 12 lines · Johannes Thumshirn
Quoted 11 lines · Sasha Levin

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

btrfs: zoned: exit btrfs_can_activate_zone if BTRFS_FS_NEED_ZONE_FINISH is set

to the 6.14-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-zoned-exit-btrfs_can_activate_zone-if-btrfs_fs.patch
and it can be found in the queue-6.14 subdirectory.

Quoted 7 lines
Quoted 3 lines

If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.

Hey Sasha,

this patch is just a readability cleanup, no reason to backport it.

Now dropped, thanks.

greg k-h