summaryrefslogtreecommitdiff
path: root/sys/ufs/ext2fs
diff options
context:
space:
mode:
authorVisa Hankala <visa@cvs.openbsd.org>2017-04-20 14:13:01 +0000
committerVisa Hankala <visa@cvs.openbsd.org>2017-04-20 14:13:01 +0000
commita286e01bcdb694af72cc68023f8b8fe54cb7265b (patch)
tree700efd869ef7cca1e0b59b9a9310acbe988c288b /sys/ufs/ext2fs
parentda85a125dd7fd9af53b0919887129daaf4fa53bb (diff)
Tweak lock inits to make the system runnable with witness(4)
on amd64 and i386.
Diffstat (limited to 'sys/ufs/ext2fs')
-rw-r--r--sys/ufs/ext2fs/ext2fs_vfsops.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/ufs/ext2fs/ext2fs_vfsops.c b/sys/ufs/ext2fs/ext2fs_vfsops.c
index 05cab5e43a6..53eaa05a32a 100644
--- a/sys/ufs/ext2fs/ext2fs_vfsops.c
+++ b/sys/ufs/ext2fs/ext2fs_vfsops.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ext2fs_vfsops.c,v 1.97 2016/09/15 02:00:18 dlg Exp $ */
+/* $OpenBSD: ext2fs_vfsops.c,v 1.98 2017/04/20 14:13:00 visa Exp $ */
/* $NetBSD: ext2fs_vfsops.c,v 1.1 1997/06/11 09:34:07 bouyer Exp $ */
/*
@@ -815,7 +815,7 @@ ext2fs_vget(struct mount *mp, ino_t ino, struct vnode **vpp)
}
ip = pool_get(&ext2fs_inode_pool, PR_WAITOK|PR_ZERO);
- rrw_init(&ip->i_lock, "inode");
+ rrw_init_flags(&ip->i_lock, "inode", RWL_DUPOK);
vp->v_data = ip;
ip->i_vnode = vp;
ip->i_ump = ump;