• Chao Yu's avatar
    f2fs: introduce excess_dirty_threshold() · 287b1406
    Chao Yu authored
    This patch enables f2fs_balance_fs_bg() to check all metadatas' dirty
    threshold rather than just checking node block's, so that checkpoint()
    from background can be triggered more frequently to avoid heaping up
    too much dirty metadatas.
    
    Threshold value by default:
    race with foreground ops	single type	global
    No				16MB		24MB
    Yes				24MB		36MB
    
    In addtion, let f2fs_balance_fs_bg() be aware of roll-forward sapce
    as well as fsync().
    Signed-off-by: default avatarChao Yu <chao@kernel.org>
    Signed-off-by: default avatarJaegeuk Kim <jaegeuk@kernel.org>
    287b1406
node.h 11.9 KB