]> www.infradead.org Git - users/hch/block.git/commit
block: correctly report cache type
authorChristoph Hellwig <hch@lst.de>
Tue, 25 Jun 2024 07:07:13 +0000 (09:07 +0200)
committerChristoph Hellwig <hch@lst.de>
Tue, 25 Jun 2024 08:54:12 +0000 (10:54 +0200)
commit2a6e7507fc90d1c1d57998fd7563692001d871aa
tree68890b4f071e38be86a61ae4706d7f4b7093ff01
parent44348870de4b8f292f97b84583a298d66fbaf738
block: correctly report cache type

Check the features flag and the override flag, otherwise we're going to
always report "write through".

Fixes: 1122c0c1cc71 ("block: move cache control settings out of queue->flags")
Signed-off-by: Christoph Hellwig <hch@lst.de>
block/blk-sysfs.c