lkml.org 
[lkml]   [2012]   [Aug]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH v5 15/19] vfs: remove user_path_parent
Date
...there are no more callers.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
---
fs/namei.c | 18 ------------------
1 file changed, 18 deletions(-)

diff --git a/fs/namei.c b/fs/namei.c
index 936591f..ca1496a 100644
--- a/fs/namei.c
+++ b/fs/namei.c
@@ -2121,24 +2121,6 @@ int user_path_at(int dfd, const char __user *name, unsigned flags,
return err;
}

-static int user_path_parent(int dfd, const char __user *path,
- struct nameidata *nd, char **name)
-{
- char *s = getname(path);
- int error;
-
- if (IS_ERR(s))
- return PTR_ERR(s);
-
- error = do_path_lookup(dfd, s, LOOKUP_PARENT, nd);
- if (error)
- putname(s);
- else
- *name = s;
-
- return error;
-}
-
/*
* It's inline, so penalty for filesystems that don't use sticky bit is
* minimal.
--
1.7.11.2


\
 
 \ /
  Last update: 2012-08-08 16:03    [W:0.936 / U:0.224 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site