summaryrefslogtreecommitdiffstats
path: root/module
diff options
context:
space:
mode:
authorBrian Behlendorf <[email protected]>2009-07-22 14:28:19 -0700
committerBrian Behlendorf <[email protected]>2009-07-22 14:28:19 -0700
commit2141116167c36051f757f426f1fb2242ab85d2a4 (patch)
treecb1e5f00c241ec4a0f3fa7642c3102296d8b51fc /module
parent749e5eb1edaa86b60e3b0c925a587925873ec560 (diff)
The HAVE_PATH_IN_NAMEIDATA compat macros should have been used here.
Diffstat (limited to 'module')
-rw-r--r--module/spl/spl-vnode.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/module/spl/spl-vnode.c b/module/spl/spl-vnode.c
index c5595dee0..08c339a5a 100644
--- a/module/spl/spl-vnode.c
+++ b/module/spl/spl-vnode.c
@@ -304,7 +304,7 @@ vn_remove(const char *path, uio_seg_t seg, int flags)
#ifdef HAVE_2ARGS_VFS_UNLINK
rc = vfs_unlink(nd.nd_dentry->d_inode, dentry);
#else
- rc = vfs_unlink(nd.nd_dentry->d_inode, dentry, nd.mnt);
+ rc = vfs_unlink(nd.nd_dentry->d_inode, dentry, nd.nd_mnt);
#endif /* HAVE_2ARGS_VFS_UNLINK */
exit2:
dput(dentry);
@@ -401,8 +401,8 @@ vn_rename(const char *oldname, const char *newname, int x1)
rc = vfs_rename(old_dir->d_inode, old_dentry,
new_dir->d_inode, new_dentry);
#else
- rc = vfs_rename(old_dir->d_inode, old_dentry, oldnd.mnt,
- new_dir->d_inode, new_dentry, newnd.mnt);
+ rc = vfs_rename(old_dir->d_inode, old_dentry, oldnd.nd_mnt,
+ new_dir->d_inode, new_dentry, newnd.nd_mnt);
#endif /* HAVE_4ARGS_VFS_RENAME */
exit5:
dput(new_dentry);