mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 02:27:36 +03:00
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 <behlendorf1@llnl.gov>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user