diff options
author | Josef Bacik <josef@redhat.com> | 2011-08-22 15:23:19 -0400 |
---|---|---|
committer | Josef Bacik <josef@redhat.com> | 2011-10-19 15:12:40 -0400 |
commit | 7f70150896ebd1169d9c43484c8c424f755353c4 (patch) | |
tree | 40a74b6e9e143fb57cde9920d08aa6b7867b1542 /fs/ocfs2 | |
parent | 7ed49f187c82821e35f8869399bcf90822a74a23 (diff) |
Btrfs: don't increase the block_rsv's size when emergency allocating space
If we have to emergency reserve space we need to not increase the block_rsv
size, otherwise we'll leak space. Take for instance delalloc, say we reserve
4k, and we use that 4k, and then we have to emergency allocate another 4k, we
bump the size up to 8k, however we've only accounted for 4k in reservations in
all of our supporting logic, so we'll go to free the 4k and end up having a size
of 4k, which will cause us to later not free as much space. I saw this doing
testing where I wasn't reserving enough space for something but was still
leaking space, very frustrating. Thanks,
Signed-off-by: Josef Bacik <josef@redhat.com>
Diffstat (limited to 'fs/ocfs2')
0 files changed, 0 insertions, 0 deletions