btrfs: btrfs_iget never returns an is_bad_inode inode
[muen/linux.git] / fs / btrfs / free-space-cache.c
index 57e7ab7f5e03c310a45290f63dd0567c523bb6e7..0adf38b00fa0477f7a36d2570246213b9442ab23 100644 (file)
@@ -71,10 +71,6 @@ static struct inode *__lookup_free_space_inode(struct btrfs_root *root,
        inode = btrfs_iget(fs_info->sb, &location, root, NULL);
        if (IS_ERR(inode))
                return inode;
-       if (is_bad_inode(inode)) {
-               iput(inode);
-               return ERR_PTR(-ENOENT);
-       }
 
        mapping_set_gfp_mask(inode->i_mapping,
                        mapping_gfp_constraint(inode->i_mapping,