On Jan 07, 2021 / 06:57, Dmitry Fomichev wrote: > Two different type of zones have a write pointer: Sequential Write > Required (SWR) and Sequential Write Preferred (SWP). Introduce the > zone flag "has_wp" in struct zbd_zone_info and set it to 1 for these > zone types upon initialization, thus avoiding the necessity to check > multiple zone types in core zbd code. This flag replaces zbd_zone_swr() > function and lays the groundwork for supporting additional write > pointer zone types in the future. > > The overall functionality stays the same after this commit. > > Signed-off-by: Dmitry Fomichev <dmitry.fomichev@xxxxxxx> Looks good to me. Reviewed-by: Shin'ichiro Kawasaki <shinichiro.kawasaki@xxxxxxx> -- Best Regards, Shin'ichiro Kawasaki