Source-Changes-HG archive

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

[src/trunk]: src/sys/ufs/ext2fs modify the comment to note code needs to brel...



details:   https://anonhg.NetBSD.org/src/rev/59e586a9d7d1
branches:  trunk
changeset: 347320:59e586a9d7d1
user:      jdolecek <jdolecek%NetBSD.org@localhost>
date:      Sat Aug 20 19:53:43 2016 +0000

description:
modify the comment to note code needs to brele() to have a shot on actually
working

diffstat:

 sys/ufs/ext2fs/ext2fs_alloc.c |  9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

diffs (30 lines):

diff -r fc0a52c021df -r 59e586a9d7d1 sys/ufs/ext2fs/ext2fs_alloc.c
--- a/sys/ufs/ext2fs/ext2fs_alloc.c     Sat Aug 20 19:51:50 2016 +0000
+++ b/sys/ufs/ext2fs/ext2fs_alloc.c     Sat Aug 20 19:53:43 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ext2fs_alloc.c,v 1.50 2016/08/20 19:51:50 jdolecek Exp $       */
+/*     $NetBSD: ext2fs_alloc.c,v 1.51 2016/08/20 19:53:43 jdolecek Exp $       */
 
 /*
  * Copyright (c) 1982, 1986, 1989, 1993
@@ -60,7 +60,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ext2fs_alloc.c,v 1.50 2016/08/20 19:51:50 jdolecek Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ext2fs_alloc.c,v 1.51 2016/08/20 19:53:43 jdolecek Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -418,7 +418,10 @@
 
        bno = ext2fs_mapsearch(fs, bbp, bpref);
 #if 0
-       /* XXX jdolecek mapsearch actually never fails, it panics instead */
+       /*
+        * XXX jdolecek mapsearch actually never fails, it panics instead.
+        * If re-enabling, make sure to brele() before returning.
+        */
        if (bno < 0)
                return 0;
 #endif



Home | Main Index | Thread Index | Old Index