[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <Y00IhghhGgVQBknL@infradead.org>
Date: Mon, 17 Oct 2022 00:47:18 -0700
From: Christoph Hellwig <hch@...radead.org>
To: Dawei Li <set_pte_at@...look.com>
Cc: axboe@...nel.dk, tj@...nel.org, paolo.valente@...aro.org,
linux-block@...r.kernel.org, cgroups@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH 1/2] block: Add helper for queue_flags bit test
> if (op_is_flush(bio->bi_opf) &&
> - !test_bit(QUEUE_FLAG_WC, &q->queue_flags)) {
> + !blk_queue_wb_cached(q)) {
The formatting is wrong here. And I really think these helpers do
nothing but obsfucating the code. Now instead of a grep telling
me exactly what is going on I now need to walk through the macro
first. (nevermind that this particular one is also horribly misnamed).
Powered by blists - more mailing lists