Skip to contentSkip to conversation

btrfs: remove unused function btrfs_ilookup

PATCH New Christoph Hellwig 1 participant 1 message Aug 30, 2008 Btrfs file system

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 btrfs: remove unused function btrfs_ilookup

btrfs_ilookup is unused, which is good because a normal filesystem should never have to use ilookup anyway. Remove it.

ctree.h +0 -2
Index: btrfs-unstable/ctree.h
===================================================================
@@ -1698,8 +1698,6 @@ void btrfs_destroy_cachep(void);
 long btrfs_ioctl_trans_end(struct file *file);
 struct inode *btrfs_iget_locked(struct super_block *s, u64 objectid,
 				struct btrfs_root *root);
-struct inode *btrfs_ilookup(struct super_block *s, u64 objectid,
-			    u64 root_objectid);
 struct inode *btrfs_iget(struct super_block *s, struct btrfs_key *location,
 			 struct btrfs_root *root, int *is_new);
 int btrfs_commit_write(struct file *file, struct page *page,
inode.c +0 -13
Index: btrfs-unstable/inode.c
===================================================================
@@ -1781,19 +1781,6 @@ static int btrfs_find_actor(struct inode
 		args->root == BTRFS_I(inode)->root);
 }
 
-struct inode *btrfs_ilookup(struct super_block *s, u64 objectid,
-			    u64 root_objectid)
-{
-	struct btrfs_iget_args args;
-	args.ino = objectid;
-	args.root = btrfs_lookup_fs_root(btrfs_sb(s)->fs_info, root_objectid);
-
-	if (!args.root)
-		return NULL;
-
-	return ilookup5(s, objectid, btrfs_find_actor, (void *)&args);
-}
-
 struct inode *btrfs_iget_locked(struct super_block *s, u64 objectid,
 				struct btrfs_root *root)
 {