diff options
author | Christoph Hellwig <hch@lst.de> | 2023-12-26 09:07:47 +0000 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2023-12-26 09:28:10 -0700 |
commit | 5d13243820c457edf54a1fd848141ce7eb092671 (patch) | |
tree | a19e42d2ac7f38f475df03a2073c3304a114fe95 /block/blk-settings.c | |
parent | 1c042f8d4bc342b7985b1de3d76836f1a1083b65 (diff) | |
download | linux-5d13243820c457edf54a1fd848141ce7eb092671.tar.gz linux-5d13243820c457edf54a1fd848141ce7eb092671.tar.bz2 linux-5d13243820c457edf54a1fd848141ce7eb092671.zip |
blk-wbt: remove the separate write cache tracking
Use the queue wide write back cache tracking insted of duplicating the
value in strut rq_wb.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20231226090747.204969-1-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/blk-settings.c')
-rw-r--r-- | block/blk-settings.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/block/blk-settings.c b/block/blk-settings.c index bb94a3d471f4..33b3f767b81e 100644 --- a/block/blk-settings.c +++ b/block/blk-settings.c @@ -837,8 +837,6 @@ void blk_queue_write_cache(struct request_queue *q, bool wc, bool fua) blk_queue_flag_set(QUEUE_FLAG_FUA, q); else blk_queue_flag_clear(QUEUE_FLAG_FUA, q); - - wbt_set_write_cache(q, test_bit(QUEUE_FLAG_WC, &q->queue_flags)); } EXPORT_SYMBOL_GPL(blk_queue_write_cache); |