make this compile again. VOP_CLOSE is really vn_close() through macros.
This commit is contained in:
parent
452fee2663
commit
dd89f66f56
|
@ -179,7 +179,7 @@ spa_config_write(spa_config_dirent_t *dp, nvlist_t *nvl)
|
|||
VOP_FSYNC(vp, FSYNC, kcred, NULL) == 0) {
|
||||
(void) vn_rename(temp, dp->scd_path, UIO_SYSSPACE);
|
||||
}
|
||||
vn_close(vp, FWRITE, kcred);
|
||||
(void) VOP_CLOSE(vp, oflags, 1, 0, kcred, NULL);
|
||||
}
|
||||
|
||||
(void) vn_remove(temp, UIO_SYSSPACE, RMFILE);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: zfs_context.h,v 1.11 2011/11/21 05:50:11 christos Exp $ */
|
||||
/* $NetBSD: zfs_context.h,v 1.12 2011/11/21 17:51:03 christos Exp $ */
|
||||
|
||||
/*
|
||||
* CDDL HEADER START
|
||||
|
@ -380,7 +380,7 @@ extern int vn_openat(char *path, int x1, int oflags, int mode, vnode_t **vpp,
|
|||
int x2, int x3, vnode_t *vp, int unk);
|
||||
extern int vn_rdwr(int uio, vnode_t *vp, void *addr, ssize_t len,
|
||||
offset_t offset, int x1, int x2, rlim64_t x3, void *x4, ssize_t *residp);
|
||||
extern void vn_close(vnode_t *vp, int flags, kauth_cred_t cred);
|
||||
extern void vn_close(vnode_t *vp);
|
||||
extern int vn_getattr(vnode_t *vp, vattr_t *va);
|
||||
|
||||
#define vn_remove(path, x1, x2) remove(path)
|
||||
|
|
Loading…
Reference in New Issue