summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/scrub.c
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.cz>2015-01-02 18:55:46 +0100
committerDavid Sterba <dsterba@suse.cz>2015-01-14 19:23:47 +0100
commit14692cc150d3ce10ea8766ccb2a8f483b77b49f0 (patch)
tree96954530d68d8a7d3ab9b3d741736f60b346d313 /fs/btrfs/scrub.c
parent381cf6587f8a8a8e981bc0c1aaaa8859b51dc756 (diff)
downloadlinux-14692cc150d3ce10ea8766ccb2a8f483b77b49f0.tar.bz2
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>
Diffstat (limited to 'fs/btrfs/scrub.c')
-rw-r--r--fs/btrfs/scrub.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/fs/btrfs/scrub.c b/fs/btrfs/scrub.c
index 9e1569ffbf6e..4846f66391a4 100644
--- a/fs/btrfs/scrub.c
+++ b/fs/btrfs/scrub.c
@@ -530,7 +530,11 @@ static int scrub_print_warning_inode(u64 inum, u64 offset, u64 root,
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;