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
A message that is not in the archive (sent off-list or not yet received): [email protected]
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_zoneifBTRFS_FS_NEED_ZONE_FINISHis setto 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
1136d333d91088ecf2d5189367540a84e60449a0Author: Johannes Thumshirn <[email protected]> Date: Wed Feb 12 15:05:00 2025 +0100btrfs: zoned: exit
btrfs_can_activate_zoneifBTRFS_FS_NEED_ZONE_FINISHis set[ Upstream commit
26b38e28162ef4ceb1e0482299820fbbd7dbcd92]If
BTRFS_FS_NEED_ZONE_FINISHis already set for the whole filesystem, exit early inbtrfs_can_activate_zone(). There's no need to check ifBTRFS_FS_NEED_ZONE_FINISHneeds to be set if it is already set.Reviewed-by Naohiro Aota <[email protected]>Signed-off-by Johannes Thumshirn <[email protected]>Reviewed-by David Sterba <[email protected]>Signed-off-by David Sterba <[email protected]>Signed-off-by Sasha Levin <[email protected]>fs/btrfs/zoned.c +3
-0@@ -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);
Greg KH
maintainerQuoted 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_zoneifBTRFS_FS_NEED_ZONE_FINISHis setto the 6.14-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summaryThe 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