]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: add bytes_readonly to the spaceinfo at once
authorJosef Bacik <jbacik@fb.com>
Fri, 25 Mar 2016 17:25:47 +0000 (13:25 -0400)
committerDavid Sterba <dsterba@suse.com>
Thu, 7 Jul 2016 16:45:53 +0000 (18:45 +0200)
commit7581789fd696834d02c5606fcc1466c43f6a4927
tree085dfa71d90bfc25cc563439544b84417169c9d1
parent67cdf5a8c0d1e87063033bea9387a1c64c63e552
Btrfs: add bytes_readonly to the spaceinfo at once

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: Josef Bacik <jbacik@fb.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/extent-tree.c