mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] avoid lookup_hash usage in relayfs
@ 2005-06-28 11:36 Christoph Hellwig
  0 siblings, 0 replies; only message in thread
From: Christoph Hellwig @ 2005-06-28 11:36 UTC (permalink / raw)
  To: akpm; +Cc: linux-kernel

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


Index: linux-2.6.12/fs/relayfs/inode.c
===================================================================
--- linux-2.6.12.orig/fs/relayfs/inode.c	2005-06-27 21:12:33.000000000 +0200
+++ linux-2.6.12/fs/relayfs/inode.c	2005-06-28 13:24:05.000000000 +0200
@@ -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;

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-06-28 11:37 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-06-28 11:36 [PATCH] avoid lookup_hash usage in relayfs Christoph Hellwig

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®