From: Liu Bo Date: Tue, 29 Oct 2013 02:45:05 +0000 (+0800) Subject: Btrfs: do not run snapshot-aware defragment on error X-Git-Tag: v3.13-rc1~85^2~19 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6f519564d7d978c00351d9ab6abac3deeac31621;p=pandora-kernel.git Btrfs: do not run snapshot-aware defragment on error If something wrong happens in write endio, running snapshot-aware defragment can end up with undefined results, maybe a crash, so we should avoid it. In order to share similar code, this also adds a helper to free the struct for snapshot-aware defrag. Signed-off-by: Liu Bo Signed-off-by: Josef Bacik Signed-off-by: Chris Mason --- Reading git-diff-tree failed