From: Chris Mason Date: Wed, 25 Jan 2012 18:47:40 +0000 (-0500) Subject: Btrfs: fix reservations in btrfs_page_mkwrite X-Git-Tag: v3.3-rc2~16^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9998eb703490589c3e8f1bf09b15203156776edb;p=pandora-kernel.git Btrfs: fix reservations in btrfs_page_mkwrite Josef fixed btrfs_page_mkwrite to properly release reserved extents if there was an error. But if we fail to get a reservation and we fail to dirty the inode (for ENOSPC reasons), we'll end up trying to release a reservation we never had. This makes sure we only release if we were able to reserve. Signed-off-by: Chris Mason --- Reading git-diff-tree failed