• Josef Bacik's avatar
    Btrfs: add bytes_readonly to the spaceinfo at once · e40edf2d
    Josef Bacik authored
    For some reason we're adding bytes_readonly to the space info after we update
    the space info with the block group info.  This creates a tiny race where we
    could over-reserve space because we haven't yet taken out the bytes_readonly
    bit.  Since we already know this information at the time we call
    update_space_info, just pass it along so it can be updated all at once.  Thanks,
    Signed-off-by: default avatarJosef Bacik <jbacik@fb.com>
    Signed-off-by: default avatarDavid Sterba <dsterba@suse.com>
    e40edf2d
extent-tree.c 296 KB