diff options
author | Josef Bacik <josef@redhat.com> | 2010-10-15 15:13:32 -0400 |
---|---|---|
committer | Josef Bacik <josef@redhat.com> | 2010-10-22 15:54:56 -0400 |
commit | 6d48755d02b150de7f47e7b4753202f2fc9f990f (patch) | |
tree | 82bfa3265acbec93df92c9e0a5dced4e9b224208 /security/commoncap.c | |
parent | 89a55897a2fbbceb94480952784004bf23911d38 (diff) |
Btrfs: fix reservation code for mixed block groups
The global reservation stuff tries to add together DATA and METADATA used in
order to figure out how much to reserve for everything, but this doesn't work
right for mixed block groups. Instead if we have mixed block groups just set
data used to 0. Also with mixed block groups we will use bytes_may_use for
keeping track of delalloc bytes, so we need to take that into account in our
reservation calculations.
Signed-off-by: Josef Bacik <josef@redhat.com>
Diffstat (limited to 'security/commoncap.c')
0 files changed, 0 insertions, 0 deletions