]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: fix wrong check during log recovery
authorLiu Bo <liubo2009@cn.fujitsu.com>
Tue, 26 Jun 2012 03:59:09 +0000 (21:59 -0600)
committerChris Mason <chris.mason@fusionio.com>
Mon, 2 Jul 2012 19:39:17 +0000 (15:39 -0400)
commite814cec7bf7e175b2219535ea01c261ccc068e1f
treee9e194f5208d2016e98f94b987f9e56db8afe989
parent55be86143f0346f48d891fcdffb02f80686b7620
Btrfs: fix wrong check during log recovery

When we're evicting an inode during log recovery, we need to ensure that the inode
is not in orphan state any more, which means inode's run_time flags has _no_
BTRFS_INODE_HAS_ORPHAN_ITEM.  Thus, the BUG_ON was triggered because of a wrong
check for the flags.

Reviewed-by: David Sterba <dsterba@suse.cz>
Signed-off-by: Liu Bo <liubo2009@cn.fujitsu.com>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
fs/btrfs/inode.c