> > There are three flags that control Write Booster Feature: > > 1. WB ON/OFF > 2. WB Hibern Flush ON/OFF (implicitly) > 3. WB Flush ON/OFF (explicit) > > In the case of "Hibern Flush", one of the conditions for flush WB buffer is > that avail_wb_buff < wb_flush_threshold. > > As we know, different users have different requirements for power > consumption and performance. Therefore, we need the ability to manually > set wb_flush_threshold, so that users can easily and flexibly adjust > the wb_flush_threshold value, thereby achieving a balance between power > consumption and performance. > > So the sysfs attribute that controls this is necessary. > > The meaning of wb_flush_threshold is the percentage of WB's total size, > such as 1 representing 10%, 2 representing 20%, and so on. > > Signed-off-by: Lu Hongfei <luhongfei@xxxxxxxx> Reviewed-by: Avri Altman <avri.altman@xxxxxxx>