btrfs: cleanup, remove inode_item_info helper
It's only a simple wrapper around btrfs_find_item, the locally defined
key is not used.
Signed-off-by: David Sterba <dsterba@suse.cz>
diff --git a/fs/btrfs/scrub.c b/fs/btrfs/scrub.c
index 9e1569f..4846f66 100644
--- a/fs/btrfs/scrub.c
+++ b/fs/btrfs/scrub.c
@@ -530,7 +530,11 @@
goto err;
}
- ret = inode_item_info(inum, 0, local_root, swarn->path);
+ /*
+ * this makes the path point to (inum INODE_ITEM ioff)
+ */
+ ret = btrfs_find_item(local_root, swarn->path, inum, 0,
+ BTRFS_INODE_ITEM_KEY, NULL);
if (ret) {
btrfs_release_path(swarn->path);
goto err;