From: Chris Ball Date: Mon, 27 Apr 2009 11:29:03 +0000 (-0400) Subject: Btrfs: When shrinking, only update disk size on success X-Git-Tag: v2.6.30-rc4~21^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d6397baee468809ef311e763dfc6e9f73418f8a6;p=pandora-kernel.git Btrfs: When shrinking, only update disk size on success Previously, we updated a device's size prior to attempting a shrink operation. This patch moves the device resizing logic to only happen if the shrink completes successfully. In the process, it introduces a new field to btrfs_device -- disk_total_bytes -- to track the on-disk size. Signed-off-by: Chris Ball Signed-off-by: Chris Mason --- Reading git-diff-tree failed