• Josef Bacik's avatar
    Btrfs: stop using try_to_writeback_inodes_sb_nr to flush delalloc · 925a6efb
    Josef Bacik authored
    try_to_writeback_inodes_sb_nr returns 1 if writeback is already underway, which
    is completely fraking useless for us as we need to make sure pages are actually
    written before we go and check if there are ordered extents.  So replace this
    with an open coding of try_to_writeback_inodes_sb_nr minus the writeback
    underway check so that we are sure to actually have flushed some dirty pages out
    and will have ordered extents to use.  With this patch xfstests generic/273 now
    passes.  Thanks,
    Signed-off-by: default avatarJosef Bacik <jbacik@fusionio.com>
    925a6efb
extent-tree.c 233 KB