summaryrefslogtreecommitdiff
path: root/fs/sysv/symlink.c
diff options
context:
space:
mode:
authorJosef Bacik <josef@redhat.com>2011-08-19 15:45:52 -0400
committerJosef Bacik <josef@redhat.com>2011-10-19 15:12:39 -0400
commit7ed49f187c82821e35f8869399bcf90822a74a23 (patch)
tree801cdba60d8cfa7c5aa9ecb2b396ba61d5cad9ab /fs/sysv/symlink.c
parenta9b5fcddce594a408a48d523087b5bb64ce82469 (diff)
Btrfs: fix space leak when we fail to make an allocation
When changing back to using a spin_lock to protect the extent counters I decided that since we would only be dropping our original extent, it was ok to just drop the extent and return. However since somebody else could have come in and done a reservation, we need to do the normal song and dance to clear the reservation out properly. So calculate how much space we need to free, and then subtract what we just attempted to reserve. If it's more then we know we need to drop those bytes from the delalloc block rsv. Thanks, Signed-off-by: Josef Bacik <josef@redhat.com>
Diffstat (limited to 'fs/sysv/symlink.c')
0 files changed, 0 insertions, 0 deletions