From: Josef Bacik Date: Thu, 25 Jul 2013 19:11:47 +0000 (-0400) Subject: Btrfs: check to see if root_list is empty before adding it to dead roots X-Git-Tag: v3.11-rc5~5^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cfad392b22163eba71d882950e17d2c4d43b2bad;p=pandora-kernel.git Btrfs: check to see if root_list is empty before adding it to dead roots A user reported a panic when running with autodefrag and deleting snapshots. This is because we could end up trying to add the root to the dead roots list twice. To fix this check to see if we are empty before adding ourselves to the dead roots list. Thanks, Signed-off-by: Josef Bacik Signed-off-by: Chris Mason --- Reading git-diff-tree failed