]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: release space on error in page_mkwrite
authorJosef Bacik <josef@redhat.com>
Fri, 13 Jan 2012 00:10:12 +0000 (19:10 -0500)
committerChris Mason <chris.mason@oracle.com>
Mon, 16 Jan 2012 20:28:54 +0000 (15:28 -0500)
commitb42f4c3851ec4760c0333b03311a475fe52c3727
treebaf6a56fb98735cc533b6a5bb9c29a364a6c0cf3
parentc6b476db08cc038045b51addc70ded6f192e486e
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>
fs/btrfs/inode.c