Module Name: src
Committed By: jdolecek
Date: Sat Aug 20 19:51:50 UTC 2016
Modified Files:
src/sys/ufs/ext2fs: ext2fs_alloc.c
Log Message:
#if 0 the check for ext2fs_mapsearch() failure (similar what was done
for ffs counterpart), it actually never fails, it panics instead
To generate a diff of this commit:
cvs rdiff -u -r1.49 -r1.50 src/sys/ufs/ext2fs/ext2fs_alloc.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/ufs/ext2fs/ext2fs_alloc.c
diff -u src/sys/ufs/ext2fs/ext2fs_alloc.c:1.49 src/sys/ufs/ext2fs/ext2fs_alloc.c:1.50
--- src/sys/ufs/ext2fs/ext2fs_alloc.c:1.49 Sat Aug 20 19:47:44 2016
+++ src/sys/ufs/ext2fs/ext2fs_alloc.c Sat Aug 20 19:51:50 2016
@@ -1,4 +1,4 @@
-/* $NetBSD: ext2fs_alloc.c,v 1.49 2016/08/20 19:47:44 jdolecek Exp $ */
+/* $NetBSD: ext2fs_alloc.c,v 1.50 2016/08/20 19:51:50 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.49 2016/08/20 19:47:44 jdolecek Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ext2fs_alloc.c,v 1.50 2016/08/20 19:51:50 jdolecek Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -417,8 +417,11 @@ ext2fs_alloccg(struct inode *ip, int cg,
}
bno = ext2fs_mapsearch(fs, bbp, bpref);
+#if 0
+ /* XXX jdolecek mapsearch actually never fails, it panics instead */
if (bno < 0)
return 0;
+#endif
gotit:
#ifdef DIAGNOSTIC
if (isset(bbp, (daddr_t)bno)) {