]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
block: cleanup queue_wc_store
authorChristoph Hellwig <hch@lst.de>
Fri, 7 Jul 2023 09:42:38 +0000 (11:42 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 13 Sep 2023 07:48:13 +0000 (09:48 +0200)
commitdb22fcbad57cdf3694c30ada8389d492ba1b4fdc
treeb18efe199f1cf282ae257f4649e23a02f8fb23a2
parent03382577996c980fde3c5ccf35d7fffe46b57c6d
block: cleanup queue_wc_store

[ Upstream commit c4e21bcd0f9d01f9c5d6c52007f5541871a5b1de ]

Get rid of the local queue_wc_store variable and handling setting and
clearing the QUEUE_FLAG_WC flag diretly instead the if / else if.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20230707094239.107968-2-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Stable-dep-of: 43c9835b144c ("block: don't allow enabling a cache on devices that don't support it")
Signed-off-by: Sasha Levin <sashal@kernel.org>
block/blk-sysfs.c