Btrfs: fix btrfs_is_free_space_inode to recognize btree inode
authorLiu Bo <liubo2009@cn.fujitsu.com>
Tue, 10 Jul 2012 11:28:38 +0000 (05:28 -0600)
committerChris Mason <chris.mason@fusionio.com>
Mon, 23 Jul 2012 20:28:00 +0000 (16:28 -0400)
commit51a8cf9d2d97017d334f33f1b39067bd2f03bc49
treea80be16062c2f5ff10d766852cf9d79a852aa0ef
parentc0901581ad077004145c9ee80e843fba71c100b8
Btrfs: fix btrfs_is_free_space_inode to recognize btree inode

For btree inode, its root is also 'tree root', so btree inode can be
misunderstood as a free space inode.

We should add one more check for btree inode.

Signed-off-by: Liu Bo <liubo2009@cn.fujitsu.com>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
fs/btrfs/btrfs_inode.h