• Josef Bacik's avatar
    Btrfs: fix merge delalloc logic · 8461a3de
    Josef Bacik authored
    My patch to properly count outstanding extents wrt MAX_EXTENT_SIZE introduced a
    regression when re-dirtying already dirty areas.  We have logic in split to make
    sure we are taking the largest space into account but didn't have it for merge,
    so it was sometimes making us think we were turning a tiny extent into a huge
    extent, when in reality we already had a huge extent and needed to use the other
    side in our logic.  This fixes the regression that was reported by a user on
    list.  Thanks,
    Reported-by: default avatarMarkus Trippelsdorf <markus@trippelsdorf.de>
    Signed-off-by: default avatarJosef Bacik <jbacik@fb.com>
    Signed-off-by: default avatarChris Mason <clm@fb.com>
    8461a3de
inode.c 255 KB