aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/dev-replace.c
diff options
context:
space:
mode:
authorJosef Bacik <[email protected]>2013-07-25 19:11:47 +0000
committerChris Mason <[email protected]>2013-08-09 23:30:23 +0000
commitcfad392b22163eba71d882950e17d2c4d43b2bad (patch)
tree7a3807402e20389d22975e87291ad05a4f98665d /fs/btrfs/dev-replace.c
parentBtrfs: release both paths before logging dir/changed extents (diff)
downloadkernel-cfad392b22163eba71d882950e17d2c4d43b2bad.tar.gz
kernel-cfad392b22163eba71d882950e17d2c4d43b2bad.zip
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 <[email protected]> Signed-off-by: Chris Mason <[email protected]>
Diffstat (limited to 'fs/btrfs/dev-replace.c')
0 files changed, 0 insertions, 0 deletions