• J
    Btrfs: add bytes_readonly to the spaceinfo at once · e40edf2d
    Josef Bacik 提交于
    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: NJosef Bacik <jbacik@fb.com>
    Signed-off-by: NDavid Sterba <dsterba@suse.com>
    e40edf2d
extent-tree.c 296.2 KB