diff --git a/include/linux/blk_types.h b/include/linux/blk_types.h index 4a661e3bcb83..dff26da817cf 100644 --- a/include/linux/blk_types.h +++ b/include/linux/blk_types.h @@ -443,7 +443,7 @@ static inline enum req_op bio_op(const struct bio *bio) static inline bool op_is_write(blk_opf_t op) { - return !!(op & (__force blk_opf_t)1); + return (op & (__force blk_opf_t)1) || op == REQ_OP_ZONE_FINISH; } /*