Module Name: src
Committed By: dholland
Date: Mon Jan 11 01:22:36 UTC 2016
Modified Files:
src/sys/kern: vfs_bio.c
src/sys/sys: buf.h
Log Message:
Whatever the point of this "biodone_vfs" global function pointer is
(something rumpity?) declare it properly in a header file instead of
in secret where its types can diverge.
To generate a diff of this commit:
cvs rdiff -u -r1.257 -r1.258 src/sys/kern/vfs_bio.c
cvs rdiff -u -r1.123 -r1.124 src/sys/sys/buf.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/kern/vfs_bio.c
diff -u src/sys/kern/vfs_bio.c:1.257 src/sys/kern/vfs_bio.c:1.258
--- src/sys/kern/vfs_bio.c:1.257 Fri Jan 1 18:58:58 2016
+++ src/sys/kern/vfs_bio.c Mon Jan 11 01:22:36 2016
@@ -1,4 +1,4 @@
-/* $NetBSD: vfs_bio.c,v 1.257 2016/01/01 18:58:58 martin Exp $ */
+/* $NetBSD: vfs_bio.c,v 1.258 2016/01/11 01:22:36 dholland Exp $ */
/*-
* Copyright (c) 2007, 2008, 2009 The NetBSD Foundation, Inc.
@@ -123,7 +123,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vfs_bio.c,v 1.257 2016/01/01 18:58:58 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vfs_bio.c,v 1.258 2016/01/11 01:22:36 dholland Exp $");
#ifdef _KERNEL_OPT
#include "opt_bufcache.h"
@@ -444,7 +444,6 @@ bufinit(void)
struct bqueue *dp;
int use_std;
u_int i;
- extern void (*biodone_vfs)(buf_t *);
biodone_vfs = biodone;
Index: src/sys/sys/buf.h
diff -u src/sys/sys/buf.h:1.123 src/sys/sys/buf.h:1.124
--- src/sys/sys/buf.h:1.123 Mon Jan 11 01:08:09 2016
+++ src/sys/sys/buf.h Mon Jan 11 01:22:36 2016
@@ -1,4 +1,4 @@
-/* $NetBSD: buf.h,v 1.123 2016/01/11 01:08:09 dholland Exp $ */
+/* $NetBSD: buf.h,v 1.124 2016/01/11 01:22:36 dholland Exp $ */
/*-
* Copyright (c) 1999, 2000, 2007, 2008 The NetBSD Foundation, Inc.
@@ -88,6 +88,8 @@ struct kauth_cred;
extern kmutex_t bufcache_lock;
extern kmutex_t buffer_lock;
+extern void (*biodone_vfs)(buf_t *);
+
/*
* The buffer header describes an I/O operation in the kernel.
*