public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] avoid lookup_hash usage in configfs
@ 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 ago


Index: linux-2.6.12/fs/configfs/dir.c
===================================================================
--- linux-2.6.12.orig/fs/configfs/dir.c	2005-06-27 21:12:19.000000000 +0200
+++ linux-2.6.12/fs/configfs/dir.c	2005-06-28 13:22:36.000000000 +0200
@@ -858,7 +858,7 @@
 
 	down(&parent->d_inode->i_sem);
 
-	new_dentry = configfs_get_dentry(parent, new_name);
+	new_dentry = lookup_one_len(new_name, parent, strlen(new_name));
 	if (!IS_ERR(new_dentry)) {
   		if (!new_dentry->d_inode) {
 			error = config_item_set_name(item, "%s", new_name);
Index: linux-2.6.12/fs/configfs/inode.c
===================================================================
--- linux-2.6.12.orig/fs/configfs/inode.c	2005-06-27 21:12:19.000000000 +0200
+++ linux-2.6.12/fs/configfs/inode.c	2005-06-28 13:22:43.000000000 +0200
@@ -98,16 +98,6 @@
 	return error;
 }
 
-struct dentry * configfs_get_dentry(struct dentry * parent, const char * name)
-{
-	struct qstr qstr;
-
-	qstr.name = name;
-	qstr.len = strlen(name);
-	qstr.hash = full_name_hash(name,qstr.len);
-	return lookup_hash(&qstr,parent);
-}
-
 /*
  * Get the name for corresponding element represented by the given configfs_dirent
  */

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

only message in thread, other threads:[~2005-06-28 11:36 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 configfs Christoph Hellwig

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