Re: [PATCH -next 5/6] blk-wbt: cleanup rwb_enabled() and wbt_disabled()
From: Yu Kuai
Date: Fri May 12 2023 - 03:11:11 EST
Hi,
在 2023/05/11 23:23, Christoph Hellwig 写道:
On Thu, May 11, 2023 at 09:45:08AM +0800, Yu Kuai wrote:
From: Yu Kuai <yukuai3@xxxxxxxxxx>
The code is redundant, reuse rwb_enabled() for wbt_disabled().
This also changes how rwb_enabled is implemented.
'rwb->wb_normal == 0' should be the same as 'rwb->enable_state ==
WBT_STATE_OFF_MANUAL', I'll explain in detail in v2.
Thanks,
Kuai