Module Name: src
Committed By: hannken
Date: Mon Apr 6 14:31:06 UTC 2020
Modified Files:
src/sys/fs/udf: udf_subr.c
Log Message:
udf_get_node(): fix typo and honor "lktype" argument.
To generate a diff of this commit:
cvs rdiff -u -r1.149 -r1.150 src/sys/fs/udf/udf_subr.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/fs/udf/udf_subr.c
diff -u src/sys/fs/udf/udf_subr.c:1.149 src/sys/fs/udf/udf_subr.c:1.150
--- src/sys/fs/udf/udf_subr.c:1.149 Thu Feb 27 22:12:54 2020
+++ src/sys/fs/udf/udf_subr.c Mon Apr 6 14:31:06 2020
@@ -1,4 +1,4 @@
-/* $NetBSD: udf_subr.c,v 1.149 2020/02/27 22:12:54 ad Exp $ */
+/* $NetBSD: udf_subr.c,v 1.150 2020/04/06 14:31:06 hannken Exp $ */
/*
* Copyright (c) 2006, 2008 Reinoud Zandijk
@@ -29,7 +29,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__KERNEL_RCSID(0, "$NetBSD: udf_subr.c,v 1.149 2020/02/27 22:12:54 ad Exp $");
+__KERNEL_RCSID(0, "$NetBSD: udf_subr.c,v 1.150 2020/04/06 14:31:06 hannken Exp $");
#endif /* not lint */
@@ -5641,7 +5641,7 @@ udf_get_node(struct udf_mount *ump, stru
sizeof(node_icb_loc->loc), &vp);
if (error)
return error;
- error = vn_lock(vp, LK_EXCLUSIVE);
+ error = vn_lock(vp, lktype);
if (error) {
vrele(vp);
return error;