block: move GENHD_FL_NATIVE_CAPACITY to disk->state
authorChristoph Hellwig <hch@lst.de>
Mon, 22 Nov 2021 13:06:12 +0000 (14:06 +0100)
committerJens Axboe <axboe@kernel.dk>
Mon, 29 Nov 2021 13:35:21 +0000 (06:35 -0700)
commit86416916466514e4ae0b7296d20133b6427c4c1f
tree0182fb4115120743dc1489b6fd36fb197829121d
parentd9337a420aed38cb4ffa465e5a546360410bc0cb
block: move GENHD_FL_NATIVE_CAPACITY to disk->state

The flag to indicate an unlocked native capacity is dynamic state,
not a driver capability flag, so move it to disk->state.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20211122130625.1136848-2-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/partitions/core.c
include/linux/genhd.h