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

working
This commit is contained in:
jdolecek 2016-08-20 19:53:43 +00:00
parent cd053bea0c
commit fa4a02b45a
1 changed files with 6 additions and 3 deletions

View File

@ -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 @@ ext2fs_alloccg(struct inode *ip, int cg, daddr_t bpref, int size)
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