• Christoph Hellwig's avatar
    btrfs: don't create inline extents in fallback_to_cow · 53ffb30a
    Christoph Hellwig authored
    For NOCOW files, run_delalloc_nocow can still fall back to COW
    allocations when required and calls to fallback_to_cow helper for
    that.  For such an allocation we can have multiple ordered_extents
    for existing extents that NOCOW overwrites and new allocations that
    fallback_to_cow creates.  If one of the new extents is an inline
    extent, the writepages could would have to avoid normal page writeback
    for them as indicated by the page_started return argument, which
    run_delalloc_nocow can't return.   Fix this by never creating inline
    extents from fallback_to_cow.
    Reviewed-by: default avatarJosef Bacik <josef@toxicpanda.com>
    Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
    Signed-off-by: default avatarDavid Sterba <dsterba@suse.com>
    53ffb30a
inode.c 317 KB