summaryrefslogtreecommitdiff
path: root/fs/namei.c
diff options
context:
space:
mode:
authorStephen Rothwell <sfr@canb.auug.org.au>2009-12-11 14:51:55 +1100
committerStephen Rothwell <sfr@canb.auug.org.au>2009-12-11 14:51:55 +1100
commit4c08672743a58ccdb64db224c2365b72356ef7e3 (patch)
tree04a5addc05524379bf623a800526bcdd3d2b9482 /fs/namei.c
parenta779ee438ee6986166ba2f4c0eed4e31950f8128 (diff)
parent98627a040dc643833e62a9f875e6ac0b7c7f1311 (diff)
Merge branch 'quilt/driver-core'
Diffstat (limited to 'fs/namei.c')
-rw-r--r--fs/namei.c22
1 files changed, 0 insertions, 22 deletions
diff --git a/fs/namei.c b/fs/namei.c
index b83d38f614ff..87f97ba90ad1 100644
--- a/fs/namei.c
+++ b/fs/namei.c
@@ -1279,28 +1279,6 @@ struct dentry *lookup_one_len(const char *name, struct dentry *base, int len)
return __lookup_hash(&this, base, NULL);
}
-/**
- * lookup_one_noperm - bad hack for sysfs
- * @name: pathname component to lookup
- * @base: base directory to lookup from
- *
- * This is a variant of lookup_one_len that doesn't perform any permission
- * checks. It's a horrible hack to work around the braindead sysfs
- * architecture and should not be used anywhere else.
- *
- * DON'T USE THIS FUNCTION EVER, thanks.
- */
-struct dentry *lookup_one_noperm(const char *name, struct dentry *base)
-{
- int err;
- struct qstr this;
-
- err = __lookup_one_len(name, &this, base, strlen(name));
- if (err)
- return ERR_PTR(err);
- return __lookup_hash(&this, base, NULL);
-}
-
int user_path_at(int dfd, const char __user *name, unsigned flags,
struct path *path)
{