Print this page
pbchk
pbchk
cleanup port_free_event_local() semantics
@@ -22,11 +22,11 @@
* Copyright 2010 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
/*
- * Copyright (c) 2018, Joyent, Inc.
+ * Copyright 2020 Joyent, Inc.
*/
/*
* File Events Notification
* ------------------------
@@ -477,11 +477,11 @@
pkevp = pfp->pfop_pev;
pfp->pfop_pev = NULL;
if (pkevp != NULL) {
(void) port_remove_done_event(pkevp);
- port_free_event_local(pkevp, 0);
+ port_free_event_local(pkevp, B_TRUE);
}
port_pcache_delete(pfcp, pfp);
if (pfp->pfop_cname != NULL)
@@ -728,12 +728,12 @@
* Given the file name, get the vnode and also the directory vnode
* On return, the vnodes are held (VN_HOLD). The caller has to VN_RELE
* the vnode(s).
*/
int
-port_fop_getdvp(void *objptr, vnode_t **vp, vnode_t **dvp,
- char **cname, int *len, int follow)
+port_fop_getdvp(void *objptr, vnode_t **vp, vnode_t **dvp, char **cname,
+ int *len, int follow)
{
int error = 0;
struct pathname pn;
char *fname;