Btrfs: send, add missing check for dead clone root
authorFilipe Manana <fdmanana@suse.com>
Mon, 2 Mar 2015 20:53:52 +0000 (20:53 +0000)
committerChris Mason <clm@fb.com>
Fri, 27 Mar 2015 00:55:51 +0000 (17:55 -0700)
commit5cc2b17e80cf5770f2e585c2d90fd8af1b901258
treedef22f523ee607c7c551a4c9ea39b90a5b62a641
parent4f764e5153616fccaed38e7524d6f5f89a49a060
Btrfs: send, add missing check for dead clone root

After we locked the root's root item, a concurrent snapshot deletion
call might have set the dead flag on it. So check if the dead flag
is set and abort if it is, just like we do for the parent root.

Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: David Sterba <dsterba@suse.cz>
Signed-off-by: Chris Mason <clm@fb.com>
fs/btrfs/send.c