diff options
Diffstat (limited to 'sys/kern/vfs_syscalls.c')
-rw-r--r-- | sys/kern/vfs_syscalls.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/sys/kern/vfs_syscalls.c b/sys/kern/vfs_syscalls.c index ef16e737321..edc88b4b69e 100644 --- a/sys/kern/vfs_syscalls.c +++ b/sys/kern/vfs_syscalls.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vfs_syscalls.c,v 1.181 2012/03/19 09:05:39 guenther Exp $ */ +/* $OpenBSD: vfs_syscalls.c,v 1.182 2012/04/22 05:43:14 guenther Exp $ */ /* $NetBSD: vfs_syscalls.c,v 1.71 1996/04/23 10:29:02 mycroft Exp $ */ /* @@ -607,12 +607,12 @@ sys_fstatfs(struct proc *p, void *v, register_t *retval) return (error); mp = ((struct vnode *)fp->f_data)->v_mount; if (!mp) { - FRELE(fp); + FRELE(fp, p); return (ENOENT); } sp = &mp->mnt_stat; error = VFS_STATFS(mp, sp, p); - FRELE(fp); + FRELE(fp, p); if (error) return (error); sp->f_flags = mp->mnt_flag & MNT_VISFLAGMASK; @@ -935,7 +935,7 @@ doopenat(struct proc *p, int fd, const char *path, int oflags, mode_t mode, if (flags & O_CLOEXEC) fdp->fd_ofileflags[indx] |= UF_EXCLOSE; *retval = indx; - FILE_SET_MATURE(fp); + FILE_SET_MATURE(fp, p); out: fdpunlock(fdp); return (error); @@ -1091,7 +1091,7 @@ sys_fhopen(struct proc *p, void *v, register_t *retval) } VOP_UNLOCK(vp, 0, p); *retval = indx; - FILE_SET_MATURE(fp); + FILE_SET_MATURE(fp, p); fdpunlock(fdp); return (0); @@ -1599,7 +1599,7 @@ sys_lseek(struct proc *p, void *v, register_t *retval) fp->f_seek++; error = 0; bad: - FRELE(fp); + FRELE(fp, p); return (error); } @@ -1928,7 +1928,7 @@ sys_fchflags(struct proc *p, void *v, register_t *retval) } out: VOP_UNLOCK(vp, 0, p); - FRELE(fp); + FRELE(fp, p); return (error); } @@ -2024,7 +2024,7 @@ sys_fchmod(struct proc *p, void *v, register_t *retval) error = VOP_SETATTR(vp, &vattr, p->p_ucred, p); } VOP_UNLOCK(vp, 0, p); - FRELE(fp); + FRELE(fp, p); return (error); } @@ -2199,7 +2199,7 @@ sys_fchown(struct proc *p, void *v, register_t *retval) } out: VOP_UNLOCK(vp, 0, p); - FRELE(fp); + FRELE(fp, p); return (error); } @@ -2397,7 +2397,7 @@ dofutimens(struct proc *p, int fd, struct timespec ts[2], register_t *retval) return (error); vp = (struct vnode *)fp->f_data; vref(vp); - FRELE(fp); + FRELE(fp, p); return (dovutimens(p, vp, ts, retval)); } @@ -2472,7 +2472,7 @@ sys_ftruncate(struct proc *p, void *v, register_t *retval) } VOP_UNLOCK(vp, 0, p); bad: - FRELE(fp); + FRELE(fp, p); return (error); } @@ -2501,7 +2501,7 @@ sys_fsync(struct proc *p, void *v, register_t *retval) #endif VOP_UNLOCK(vp, 0, p); - FRELE(fp); + FRELE(fp, p); return (error); } @@ -2737,7 +2737,7 @@ getdirentries_internal(struct proc *p, int fd, char *buf, int count, goto bad; *retval = count - auio.uio_resid; bad: - FRELE(fp); + FRELE(fp, p); return (error); } |