Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

+5 -15
-11
fs/btrfs/backref.c
··· 1246 1246 return ret; 1247 1247 } 1248 1248 1249 - /* 1250 - * this makes the path point to (inum INODE_ITEM ioff) 1251 - */ 1252 - int inode_item_info(u64 inum, u64 ioff, struct btrfs_root *fs_root, 1253 - struct btrfs_path *path) 1254 - { 1255 - struct btrfs_key key; 1256 - return btrfs_find_item(fs_root, path, inum, ioff, 1257 - BTRFS_INODE_ITEM_KEY, &key); 1258 - } 1259 - 1260 1249 static int inode_ref_info(u64 inum, u64 ioff, struct btrfs_root *fs_root, 1261 1250 struct btrfs_path *path, 1262 1251 struct btrfs_key *found_key)
-3
fs/btrfs/backref.h
··· 32 32 typedef int (iterate_extent_inodes_t)(u64 inum, u64 offset, u64 root, 33 33 void *ctx); 34 34 35 - int inode_item_info(u64 inum, u64 ioff, struct btrfs_root *fs_root, 36 - struct btrfs_path *path); 37 - 38 35 int extent_from_logical(struct btrfs_fs_info *fs_info, u64 logical, 39 36 struct btrfs_path *path, struct btrfs_key *found_key, 40 37 u64 *flags);
+5 -1
fs/btrfs/scrub.c
··· 530 530 goto err; 531 531 } 532 532 533 - ret = inode_item_info(inum, 0, local_root, swarn->path); 533 + /* 534 + * this makes the path point to (inum INODE_ITEM ioff) 535 + */ 536 + ret = btrfs_find_item(local_root, swarn->path, inum, 0, 537 + BTRFS_INODE_ITEM_KEY, NULL); 534 538 if (ret) { 535 539 btrfs_release_path(swarn->path); 536 540 goto err;