more l removal
This commit is contained in:
parent
16b547ec7f
commit
e49789dd46
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: irix_mman.c,v 1.14 2007/11/27 23:30:56 dogcow Exp $ */
|
||||
/* $NetBSD: irix_mman.c,v 1.15 2007/11/28 18:50:10 pooka Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2002 The NetBSD Foundation, Inc.
|
||||
|
@ -37,7 +37,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: irix_mman.c,v 1.14 2007/11/27 23:30:56 dogcow Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: irix_mman.c,v 1.15 2007/11/28 18:50:10 pooka Exp $");
|
||||
|
||||
#if defined(_KERNEL_OPT)
|
||||
#include "opt_sysv.h"
|
||||
|
@ -205,10 +205,10 @@ irix_mmap(l, addr, len, prot, flags, fd, pos, retval)
|
|||
VATTR_NULL(&vattr);
|
||||
vattr.va_size = round_page(pos + len);
|
||||
|
||||
VOP_LEASE(vp, l, l->l_cred, LEASE_WRITE);
|
||||
VOP_LEASE(vp, l->l_cred, LEASE_WRITE);
|
||||
vn_lock(vp, LK_EXCLUSIVE | LK_RETRY);
|
||||
|
||||
error = VOP_SETATTR(vp, &vattr, l->l_cred, l);
|
||||
error = VOP_SETATTR(vp, &vattr, l->l_cred);
|
||||
|
||||
VOP_UNLOCK(vp, 0);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue