From: Filipe Manana Date: Tue, 21 Oct 2014 10:11:41 +0000 (+0100) Subject: Btrfs: ensure send always works on roots without orphans X-Git-Tag: omap-for-v3.19/fixes-rc1~111^2~12 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e5fa8f865b3324aebd055e4054bf479cbab37e5a;p=pandora-kernel.git Btrfs: ensure send always works on roots without orphans Move the logic from the snapshot creation ioctl into send. This avoids doing the transaction commit if send isn't used, and ensures that if a crash/reboot happens after the transaction commit that created the snapshot and before the transaction commit that switched the commit root, send will not get a commit root that differs from the main root (that has orphan items). Signed-off-by: Filipe Manana Signed-off-by: Chris Mason --- Reading git-diff-tree failed