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.
This commit is contained in:
Brian Behlendorf
2011-04-20 12:25:59 -07:00
parent 83c623aa1a
commit b1cbc4610c
5 changed files with 111 additions and 3 deletions
+3 -3
View File
@@ -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);