• Josef Bacik's avatar
    Btrfs: async delalloc flushing under space pressure · e3ccfa98
    Josef Bacik authored
    This patch moves the delalloc flushing that occurs when we are under space
    pressure off to a async thread pool.  This helps since we only free up
    metadata space when we actually insert the extent item, which means it takes
    quite a while for space to be free'ed up if we wait on all ordered extents.
    However, if space is freed up due to inline extents being inserted, we can
    wake people who are waiting up early, and they can finish their work.
    Signed-off-by: default avatarJosef Bacik <jbacik@redhat.com>
    Signed-off-by: default avatarChris Mason <chris.mason@oracle.com>
    e3ccfa98
ctree.h 75.8 KB