]> git.proxmox.com Git - mirror_spl.git/blobdiff - module/spl/spl-vnode.c
Remove kern_path() wrapper
[mirror_spl.git] / module / spl / spl-vnode.c
index 63e5a39ef06739338b739ec1b08a7c6b7403cd7e..b9f9d7b1fabcdcf2b5551803e01540aa12678a49 100644 (file)
@@ -296,22 +296,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