zbd: Support finishing zones on Android
authorBart Van Assche <bvanassche@acm.org>
Wed, 5 Jul 2023 21:29:15 +0000 (14:29 -0700)
committerJens Axboe <axboe@kernel.dk>
Wed, 5 Jul 2023 21:48:11 +0000 (15:48 -0600)
commit8e2b81b854286f32eae7951a434dddebd968f9d5
treec15ff74ff2130de8e59ca4d2f32e6e5d0508ae10
parentd47132c6a6be57bb5033c57db5e86cfba179c12f
zbd: Support finishing zones on Android

BLKFINISHZONE is missing from older versions of the Android NDK header
files. Hence, define BLKFINISHZONE if it has not been defined and detect
at runtime whether or not the kernel supports finishing zones.

Cc: Damien Le Moal <dlemoal@kernel.org>
Cc: Shin'ichiro Kawasaki <shinichiro.kawasaki@wdc.com>
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Link: https://lore.kernel.org/r/20230705212915.3373438-1-bvanassche@acm.org
Signed-off-by: Jens Axboe <axboe@kernel.dk>
oslib/linux-blkzoned.c