]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: check to see if root_list is empty before adding it to dead roots
authorJosef Bacik <jbacik@fusionio.com>
Thu, 25 Jul 2013 19:11:47 +0000 (15:11 -0400)
committerChris Mason <chris.mason@fusionio.com>
Fri, 9 Aug 2013 23:30:23 +0000 (19:30 -0400)
commitfc282ab70f3d0195d61040da1cbeab05d4cca4f8
tree7a3807402e20389d22975e87291ad05a4f98665d
parent76f08e66a68c0205b0a183be948ea21427bd8fa6
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 <jbacik@fusionio.com>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
fs/btrfs/transaction.c
fs/btrfs/transaction.h