]> Pileus Git - ~andy/linux/blobdiff - fs/debugfs/inode.c
Merge acpi-2.6.12 to-akpm
[~andy/linux] / fs / debugfs / inode.c
index b529786699e7025a4c3e5e654b8b2524c001430b..a86ac4aeaedb8136a14861e1aa16be95fbd05549 100644 (file)
@@ -110,16 +110,6 @@ static int debug_fill_super(struct super_block *sb, void *data, int silent)
        return simple_fill_super(sb, DEBUGFS_MAGIC, debug_files);
 }
 
-static struct dentry * 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);
-}               
-
 static struct super_block *debug_get_sb(struct file_system_type *fs_type,
                                        int flags, const char *dev_name,
                                        void *data)
@@ -157,7 +147,7 @@ static int debugfs_create_by_name(const char *name, mode_t mode,
 
        *dentry = NULL;
        down(&parent->d_inode->i_sem);
-       *dentry = get_dentry (parent, name);
+       *dentry = lookup_one_len(name, parent, strlen(name));
        if (!IS_ERR(dentry)) {
                if ((mode & S_IFMT) == S_IFDIR)
                        error = debugfs_mkdir(parent->d_inode, *dentry, mode);