]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: fix reservation code for mixed block groups
authorJosef Bacik <josef@redhat.com>
Fri, 15 Oct 2010 19:13:32 +0000 (15:13 -0400)
committerJosef Bacik <josef@redhat.com>
Fri, 22 Oct 2010 19:54:56 +0000 (15:54 -0400)
commitb700cef4d4b214ac661a80af463142197cf8f1ae
tree82bfa3265acbec93df92c9e0a5dced4e9b224208
parent2187e2f989963299ee2da19ce791abd8fb106b7c
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>
fs/btrfs/extent-tree.c