Skip to content
  • Liu Song's avatar
    ubifs: Limit the number of pages in shrink_liability · 0af83abb
    Liu Song authored
    If the number of dirty pages to be written back is large,
    then writeback_inodes_sb will block waiting for a long time,
    causing hung task detection alarm. Therefore, we should limit
    the maximum number of pages written back this time, which let
    the budget be completed faster. The remaining dirty pages
    tend to rely on the writeback mechanism to complete the
    synchronization.
    
    Fixes: b6e51316
    
     ("writeback: separate starting of sync vs opportunistic writeback")
    Signed-off-by: default avatarLiu Song <liu.song11@zte.com.cn>
    Signed-off-by: default avatarRichard Weinberger <richard@nod.at>
    0af83abb