block: move the zoned flag into the features field
Move the zoned flags into the features field to reclaim a little bit of space. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Damien Le Moal <dlemoal@kernel.org> Reviewed-by: Hannes Reinecke <hare@suse.de> Link: https://lore.kernel.org/r/20240617060532.127975-23-hch@lst.de Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
committed by
Jens Axboe
parent
8023e144f9
commit
b1fc937a55
@@ -313,6 +313,9 @@ enum {
|
||||
|
||||
/* supports I/O polling */
|
||||
BLK_FEAT_POLL = (1u << 9),
|
||||
|
||||
/* is a zoned device */
|
||||
BLK_FEAT_ZONED = (1u << 10),
|
||||
};
|
||||
|
||||
/*
|
||||
@@ -320,7 +323,7 @@ enum {
|
||||
*/
|
||||
#define BLK_FEAT_INHERIT_MASK \
|
||||
(BLK_FEAT_WRITE_CACHE | BLK_FEAT_FUA | BLK_FEAT_ROTATIONAL | \
|
||||
BLK_FEAT_STABLE_WRITES)
|
||||
BLK_FEAT_STABLE_WRITES | BLK_FEAT_ZONED)
|
||||
|
||||
/* internal flags in queue_limits.flags */
|
||||
enum {
|
||||
@@ -372,7 +375,6 @@ struct queue_limits {
|
||||
unsigned char misaligned;
|
||||
unsigned char discard_misaligned;
|
||||
unsigned char raid_partial_stripes_expensive;
|
||||
bool zoned;
|
||||
unsigned int max_open_zones;
|
||||
unsigned int max_active_zones;
|
||||
|
||||
@@ -654,7 +656,8 @@ static inline enum rpm_status queue_rpm_status(struct request_queue *q)
|
||||
|
||||
static inline bool blk_queue_is_zoned(struct request_queue *q)
|
||||
{
|
||||
return IS_ENABLED(CONFIG_BLK_DEV_ZONED) && q->limits.zoned;
|
||||
return IS_ENABLED(CONFIG_BLK_DEV_ZONED) &&
|
||||
(q->limits.features & BLK_FEAT_ZONED);
|
||||
}
|
||||
|
||||
#ifdef CONFIG_BLK_DEV_ZONED
|
||||
|
||||
Reference in New Issue
Block a user