mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-23 02:44:41 +03:00
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:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user