Skip to contentSkip to conversation

avoid lookup_hash usage in relayfs

PATCH New Christoph Hellwig 1 participant 1 message Jun 28, 2005

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 avoid lookup_hash usage in relayfs

-mm specific addon to the same kind of patches I sent a few weeks

fs/relayfs/inode.c +1 -6
Index: linux-2.6.12/fs/relayfs/inode.c
===================================================================
@@ -94,7 +94,6 @@
 					   int mode,
 					   struct rchan *chan)
 {
-	struct qstr qname;
 	struct dentry *d;
 	struct inode *inode;
 	int error = 0;
@@ -107,10 +106,6 @@
 		return NULL;
 	}
 
-	qname.name = name;
-	qname.len = strlen(name);
-	qname.hash = full_name_hash(name, qname.len);
-
 	if (!parent && relayfs_mount && relayfs_mount->mnt_sb)
 		parent = relayfs_mount->mnt_sb->s_root;
 
@@ -121,7 +116,7 @@
 
 	parent = dget(parent);
 	down(&parent->d_inode->i_sem);
-	d = lookup_hash(&qname, parent);
+	d = lookup_one_len(name, parent, strlen(name));
 	if (IS_ERR(d)) {
 		d = NULL;
 		goto release_mount;