diff options
author | Brian Behlendorf <[email protected]> | 2011-04-20 12:25:59 -0700 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2011-04-20 12:30:17 -0700 |
commit | b1cbc4610c8b5a9b5de80cb850a6eb58bb811a1d (patch) | |
tree | abcad262f820ffa79e7d716acc9f81610ca9edf5 /module/spl | |
parent | 83c623aa1a8895879f03f07b060e1c53a9757f71 (diff) |
Linux 2.6.39 compat, kern_path_parent()
The path_lookup() function has been renamed to kern_path_parent()
and the flags argument has been removed. The only behavior now
offered is that of LOOKUP_PARENT. The spl already always passed
this flag so dropping the flag does not impact us.
Diffstat (limited to 'module/spl')
-rw-r--r-- | module/spl/spl-vnode.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/module/spl/spl-vnode.c b/module/spl/spl-vnode.c index 1af9b2998..c46643175 100644 --- a/module/spl/spl-vnode.c +++ b/module/spl/spl-vnode.c @@ -316,7 +316,7 @@ vn_remove(const char *path, uio_seg_t seg, int flags) ASSERT(seg == UIO_SYSSPACE); ASSERT(flags == RMFILE); - rc = path_lookup(path, LOOKUP_PARENT, &nd); + rc = spl_kern_path_parent(path, &nd); if (rc) SGOTO(exit, rc); @@ -370,11 +370,11 @@ vn_rename(const char *oldname, const char *newname, int x1) int rc = 0; SENTRY; - rc = path_lookup(oldname, LOOKUP_PARENT, &oldnd); + rc = spl_kern_path_parent(oldname, &oldnd); if (rc) SGOTO(exit, rc); - rc = path_lookup(newname, LOOKUP_PARENT, &newnd); + rc = spl_kern_path_parent(newname, &newnd); if (rc) SGOTO(exit1, rc); |