diff options
author | Josef Bacik <jbacik@fb.com> | 2016-03-25 13:25:47 -0400 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2016-07-07 18:45:53 +0200 |
commit | e40edf2da4fc6ab10c707b0522372b08b38171e6 (patch) | |
tree | 085dfa71d90bfc25cc563439544b84417169c9d1 /fs/btrfs/ctree.h | |
parent | a99cde438de0c4c0cecc1d1af1a55a75b10bfdef (diff) | |
download | linux-e40edf2da4fc6ab10c707b0522372b08b38171e6.tar.gz linux-e40edf2da4fc6ab10c707b0522372b08b38171e6.tar.xz |
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>
Diffstat (limited to 'fs/btrfs/ctree.h')
0 files changed, 0 insertions, 0 deletions