]> git.neil.brown.name Git - history.git/commitdiff
[PATCH] remove path_init
authorAndries E. Brouwer <andries.brouwer@cwi.nl>
Tue, 18 Jun 2002 04:23:30 +0000 (21:23 -0700)
committerLinus Torvalds <torvalds@home.transmeta.com>
Tue, 18 Jun 2002 04:23:30 +0000 (21:23 -0700)
It looks like there are no in-tree users of path_init.
Maybe it can be removed.

fs/namei.c

index 8ac8afda4ccb1d79b320bed3b6b39a1c86553fec..e3e9b5434c901819266e0e313eae69937032ca4c 100644 (file)
@@ -832,22 +832,6 @@ walk_init_root(const char *name, struct nameidata *nd)
        return 1;
 }
 
-/* SMP-safe */
-int path_init(const char *name, unsigned int flags, struct nameidata *nd)
-{
-       nd->last_type = LAST_ROOT; /* if there are only slashes... */
-       nd->old_mnt = NULL;
-       nd->old_dentry = NULL;
-       nd->flags = flags;
-       if (*name=='/')
-               return walk_init_root(name,nd);
-       read_lock(&current->fs->lock);
-       nd->mnt = mntget(current->fs->pwdmnt);
-       nd->dentry = dget(current->fs->pwd);
-       read_unlock(&current->fs->lock);
-       return 1;
-}
-
 int path_lookup(const char *name, unsigned int flags, struct nameidata *nd)
 {
        nd->last_type = LAST_ROOT; /* if there are only slashes... */