• Josef Bacik's avatar
    Btrfs: do not allow logged extents to be merged or removed · 201a9038
    Josef Bacik authored
    We drop the extent map tree lock while we're logging extents, so somebody
    could come in and merge another extent into this one and screw up our
    logging, or they could even remove us from the list which would keep us from
    logging the extent or freeing our ref on it, so we need to make sure to not
    clear LOGGING until after the extent is logged, and then we can merge it to
    adjacent extents.  Thanks,
    Signed-off-by: default avatarJosef Bacik <jbacik@fusionio.com>
    201a9038
extent_map.h 2.08 KB