diff options
author | Josef Bacik <josef@redhat.com> | 2011-01-24 21:43:19 +0000 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2011-01-28 16:40:37 -0500 |
commit | e9e22899de661af94cb9995885fd04e4c738838b (patch) | |
tree | 3932040f0c5416e6ecbf508fa5d99b50eefbbc18 /fs/coda | |
parent | dedefd7215d3ec451291ca393e5c8e4c1882c8c6 (diff) | |
download | blackbird-op-linux-e9e22899de661af94cb9995885fd04e4c738838b.tar.gz blackbird-op-linux-e9e22899de661af94cb9995885fd04e4c738838b.zip |
Btrfs: do not release more reserved bytes to the global_block_rsv than we need
When we do btrfs_block_rsv_release, if global_block_rsv is not full we will
release all the extra bytes to global_block_rsv, even if it's only a little
short of the amount of space that we need to reserve. This causes us to starve
ourselves of reservable space during the transaction which will force us to
shrink delalloc bytes and commit the transaction more often than we should. So
instead just add the amount of bytes we need to add to the global reserve so
reserved == size, and then add the rest back into the space_info for general
use. Thanks,
Signed-off-by: Josef Bacik <josef@redhat.com>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/coda')
0 files changed, 0 insertions, 0 deletions