mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
Btrfs: release space on error in page_mkwrite
If updating the inode gave us an ENOSPC we were just returning in page_mkwrite, which is a problem since we make our reservation right before trying to update the inode, so fix the out label so that we actually free our reservation. Thanks, Signed-off-by: Josef Bacik <josef@redhat.com> Signed-off-by: Chris Mason <chris.mason@oracle.com>
This commit is contained in:
parent
f70a9a6b94
commit
ec39e180fd
1 changed files with 1 additions and 1 deletions
|
@ -6488,8 +6488,8 @@ out_unlock:
|
||||||
if (!ret)
|
if (!ret)
|
||||||
return VM_FAULT_LOCKED;
|
return VM_FAULT_LOCKED;
|
||||||
unlock_page(page);
|
unlock_page(page);
|
||||||
btrfs_delalloc_release_space(inode, PAGE_CACHE_SIZE);
|
|
||||||
out:
|
out:
|
||||||
|
btrfs_delalloc_release_space(inode, PAGE_CACHE_SIZE);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue