Hanna Czenczek <hre...@redhat.com> 于2023年8月24日周四 23:53写道:
>
> Instead of checking bs->wps or bs->bl.zone_size for whether zone
> information is present, check bs->bl.zoned.  That is the flag that
> raw_refresh_zoned_limits() reliably sets to indicate zone support.  If
> it is set to something other than BLK_Z_NONE, other values and objects
> like bs->wps and bs->bl.zone_size must be non-null/zero and valid; if it
> is not, we cannot rely on their validity.
>
> Signed-off-by: Hanna Czenczek <hre...@redhat.com>
> ---
>  block/file-posix.c | 12 +++++++-----
>  1 file changed, 7 insertions(+), 5 deletions(-)

Reviewed-by: Sam Li <faithilike...@gmail.com>

Reply via email to