Re: [PATCH] btrfs: zoned: exit btrfs_can_activate_zone if BTRFS_FS_NEED_ZONE_FINISH is set

From: Naohiro Aota
Date: Sun Feb 16 2025 - 21:46:08 EST


On Wed Feb 12, 2025 at 11:05 PM JST, Johannes Thumshirn wrote:
> From: Johannes Thumshirn <johannes.thumshirn@xxxxxxx>
>
> 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.
>
> Signed-off-by: Johannes Thumshirn <johannes.thumshirn@xxxxxxx>
> ---
> fs/btrfs/zoned.c | 3 +++
> 1 file changed, 3 insertions(+)

Looks reasonable.

Reviewed-by: Naohiro Aota <naohiro.aota@xxxxxxx>