OSDN Git Service

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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 23 Jun 2015 00:03:36 +0000 (17:03 -0700)
commit146a4565fa80cb586abcda5575922d5ac71162c9
tree104241384e43ab3b87a2e5cbc8a9e0ac86db440b
parentd5709e641278e6db8186638ccf61741a425cb826
Btrfs: send, add missing check for dead clone root

commit 5cc2b17e80cf5770f2e585c2d90fd8af1b901258 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/btrfs/send.c