int vn_init(void);
void vn_fini(void);
-static __inline__ int
-vn_rele(vnode_t *vp)
-{
- return 0;
-} /* vn_rele() */
-
-static __inline__ int
-vn_putpage(vnode_t *vp, offset_t off, ssize_t size,
- int flags, void *x1, void *x2) {
- return 0;
-} /* vn_putpage() */
-
#define VOP_CLOSE vn_close
#define VOP_SEEK vn_seek
-#define VN_RELE vn_rele
#define VOP_GETATTR vn_getattr
#define VOP_FSYNC vn_fsync
-#define VOP_PUTPAGE vn_putpage
+#define VOP_PUTPAGE(vp, o, s, f, x1, x2) ((void)0)
#define vn_is_readonly(vp) 0
#define getf vn_getf
#define releasef vn_releasef
}
rc = VOP_CLOSE(vp, 0, 0, 0, 0, 0);
- VN_RELE(vp);
if (rc) {
splat_vprint(file, SPLAT_VNODE_TEST1_NAME,
}
rc = VOP_CLOSE(vp, 0, 0, 0, 0, 0);
- VN_RELE(vp);
if (rc) {
splat_vprint(file, SPLAT_VNODE_TEST2_NAME,
out:
VOP_CLOSE(vp, 0, 0, 0, 0, 0);
- VN_RELE(vp);
vn_remove(SPLAT_VNODE_TEST_FILE_RW, UIO_SYSSPACE, RMFILE);
return -rc;
}
VOP_CLOSE(vp, 0, 0, 0, 0, 0);
- VN_RELE(vp);
rc = vn_rename(SPLAT_VNODE_TEST_FILE_RW1,SPLAT_VNODE_TEST_FILE_RW2,0);
if (rc) {
SPLAT_VNODE_TEST_FILE_RW1, SPLAT_VNODE_TEST_FILE_RW2);
out2:
VOP_CLOSE(vp, 0, 0, 0, 0, 0);
- VN_RELE(vp);
out:
vn_remove(SPLAT_VNODE_TEST_FILE_RW1, UIO_SYSSPACE, RMFILE);
vn_remove(SPLAT_VNODE_TEST_FILE_RW2, UIO_SYSSPACE, RMFILE);
out:
VOP_CLOSE(vp, 0, 0, 0, 0, 0);
- VN_RELE(vp);
return -rc;
} /* splat_vnode_test5() */
"fsync'ed test file %s\n", SPLAT_VNODE_TEST_FILE_RW);
out:
VOP_CLOSE(vp, 0, 0, 0, 0, 0);
- VN_RELE(vp);
vn_remove(SPLAT_VNODE_TEST_FILE_RW, UIO_SYSSPACE, RMFILE);
return -rc;