diff options
author | Stefan Behrens <sbehrens@giantdisaster.de> | 2013-08-23 10:34:42 +0200 |
---|---|---|
committer | Chris Mason <chris.mason@fusionio.com> | 2013-09-01 08:16:29 -0400 |
commit | 48475471728f060bfd2e686f592ef208d3ba8b7d (patch) | |
tree | d37a3d7661cb2c5a81e8acd2c81580a102554e68 /include | |
parent | 9d565ba4330db102127f19d159609df5c3a375d8 (diff) | |
download | linux-48475471728f060bfd2e686f592ef208d3ba8b7d.tar.bz2 |
Btrfs: fix for patch "cleanup: don't check the same thing twice"
Mitch Harder noticed that the patch 3c64a1a mentioned in the subject
line was causing a kernel BUG() on snapshot deletion.
The patch was wrong. It did not handle cached roots correctly. The
check for root_refs == 0 was removed everywhere where
btrfs_read_fs_root_no_name() had been used to retrieve the root,
because this check was already dealt with in
btrfs_read_fs_root_no_name(). But in the case when the root was
found in the cache, there was no such check.
This patch adds the missing check in the case where the root is
found in the cache.
Reported-by: Mitch Harder <mitch.harder@sabayonlinux.org>
Signed-off-by: Stefan Behrens <sbehrens@giantdisaster.de>
Reviewed-by: Miao Xie <miaox@cn.fujitsu.com>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions