From: Miao Xie Date: Thu, 6 Sep 2012 10:00:32 +0000 (-0600) Subject: Btrfs: fix error path in create_pending_snapshot() X-Git-Tag: v3.7-rc1~71^2~77 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6fa9700e734275de2acbcb0e99414bd7ddfc60f1;p=pandora-kernel.git Btrfs: fix error path in create_pending_snapshot() This patch fixes the following problem: - If we failed to deal with the delayed dir items, we should abort transaction, just as its comment said. Fix it. - If root reference or root back reference insertion failed, we should abort transaction. Fix it. - Fix the double free problem of pending->inherit. - Do not restore the trans->rsv if we doesn't change it. - make the error path more clearly. Signed-off-by: Miao Xie --- Reading git-diff-tree failed