[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 2/5] file-posix: Check bs->bl.zoned for zone info
From: |
Sam Li |
Subject: |
Re: [PATCH 2/5] file-posix: Check bs->bl.zoned for zone info |
Date: |
Fri, 25 Aug 2023 00:58:55 +0800 |
Hanna Czenczek <hreitz@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 <hreitz@redhat.com>
> ---
> block/file-posix.c | 12 +++++++-----
> 1 file changed, 7 insertions(+), 5 deletions(-)
Reviewed-by: Sam Li <faithilikerun@gmail.com>
- [PATCH 0/5] file-posix: Clean up and fix zoned checks, Hanna Czenczek, 2023/08/24
- [PATCH 1/5] file-posix: Clear bs->bl.zoned on error, Hanna Czenczek, 2023/08/24
- [PATCH 3/5] file-posix: Fix zone update in I/O error path, Hanna Czenczek, 2023/08/24
- [PATCH 2/5] file-posix: Check bs->bl.zoned for zone info, Hanna Czenczek, 2023/08/24
- Re: [PATCH 2/5] file-posix: Check bs->bl.zoned for zone info,
Sam Li <=
- [PATCH 4/5] file-posix: Simplify raw_co_prw's 'out' zone code, Hanna Czenczek, 2023/08/24
- [PATCH 5/5] tests/file-io-error: New test, Hanna Czenczek, 2023/08/24
- Re: [PATCH 0/5] file-posix: Clean up and fix zoned checks, Sam Li, 2023/08/24