aboutsummaryrefslogtreecommitdiffstats
path: root/module
diff options
context:
space:
mode:
authorBrian Behlendorf <[email protected]>2014-10-02 14:48:23 -0400
committerBrian Behlendorf <[email protected]>2014-10-17 15:11:52 -0700
commit599662c538d06054608b16a1d6a3ce10f4fdd08c (patch)
tree5485d154b90ac35a0b5fd23fbdf526104475f2e7 /module
parent3d5392cefabc1a9b7dd9c853439d3262c5374829 (diff)
Remove kern_path() wrapper
The kern_path() function has been available since Linux 2.6.28. There is no longer a need to maintain this compatibility code. Signed-off-by: Brian Behlendorf <[email protected]>
Diffstat (limited to 'module')
-rw-r--r--module/spl/spl-vnode.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/module/spl/spl-vnode.c b/module/spl/spl-vnode.c
index 63e5a39ef..b9f9d7b1f 100644
--- a/module/spl/spl-vnode.c
+++ b/module/spl/spl-vnode.c
@@ -297,22 +297,6 @@ vn_seek(vnode_t *vp, offset_t ooff, offset_t *noffp, void *ct)
EXPORT_SYMBOL(vn_seek);
/*
- * kern_path() was introduced in Linux 2.6.28. We duplicate it as a
- * compatibility shim for earlier kernels.
- */
-#ifndef HAVE_KERN_PATH
-int
-kern_path(const char *name, unsigned int flags, struct path *path)
-{
- struct nameidata nd;
- int rc = path_lookup(name, flags, &nd);
- if (!rc)
- *path = nd.path;
- return rc;
-}
-#endif /* HAVE_KERN_PATH */
-
-/*
* spl_basename() takes a NULL-terminated string s as input containing a path.
* It returns a char pointer to a string and a length that describe the
* basename of the path. If the basename is not "." or "/", it will be an index