From edd0987be071905d60a16528a5e59fb94ba1d60b Mon Sep 17 00:00:00 2001 From: "Andries E. Brouwer" Date: Mon, 17 Jun 2002 21:23:30 -0700 Subject: [PATCH] [PATCH] remove path_init It looks like there are no in-tree users of path_init. Maybe it can be removed. --- fs/namei.c | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/fs/namei.c b/fs/namei.c index 8ac8afda4ccb..e3e9b5434c90 100644 --- a/fs/namei.c +++ b/fs/namei.c @@ -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(¤t->fs->lock); - nd->mnt = mntget(current->fs->pwdmnt); - nd->dentry = dget(current->fs->pwd); - read_unlock(¤t->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... */ -- 2.39.5