Messages in this thread | | | Subject | Re: [PATCH -next 5/6] blk-wbt: cleanup rwb_enabled() and wbt_disabled() | From | Yu Kuai <> | Date | Fri, 12 May 2023 15:07:56 +0800 |
| |
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@huawei.com> >> >> 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
| |