Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/fs/udf udf_get_node(): fix typo and honor "lktype" argum...



details:   https://anonhg.NetBSD.org/src/rev/1b5aab7c8fb7
branches:  trunk
changeset: 970911:1b5aab7c8fb7
user:      hannken <hannken%NetBSD.org@localhost>
date:      Mon Apr 06 14:31:06 2020 +0000

description:
udf_get_node(): fix typo and honor "lktype" argument.

diffstat:

 sys/fs/udf/udf_subr.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 5f59e0c81101 -r 1b5aab7c8fb7 sys/fs/udf/udf_subr.c
--- a/sys/fs/udf/udf_subr.c     Mon Apr 06 13:28:15 2020 +0000
+++ b/sys/fs/udf/udf_subr.c     Mon Apr 06 14:31:06 2020 +0000
@@ -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 @@
            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;



Home | Main Index | Thread Index | Old Index