summaryrefslogtreecommitdiffstats
path: root/sys/kern/vfs_bio.c
diff options
context:
space:
mode:
authoreivind <eivind@FreeBSD.org>1999-01-12 11:59:34 +0000
committereivind <eivind@FreeBSD.org>1999-01-12 11:59:34 +0000
commitb00b77dac73ea54ffaeeb299d01ec8f028689f14 (patch)
treed815336bcc3b7e13a96229f494fe1416ada5fe25 /sys/kern/vfs_bio.c
parent62a88388759b72eeaf40aa2c6ed2d146fea2e1db (diff)
downloadFreeBSD-src-b00b77dac73ea54ffaeeb299d01ec8f028689f14.zip
FreeBSD-src-b00b77dac73ea54ffaeeb299d01ec8f028689f14.tar.gz
Silence warnings.
Diffstat (limited to 'sys/kern/vfs_bio.c')
-rw-r--r--sys/kern/vfs_bio.c15
1 files changed, 10 insertions, 5 deletions
diff --git a/sys/kern/vfs_bio.c b/sys/kern/vfs_bio.c
index 6ed2d6b..ee7ad11 100644
--- a/sys/kern/vfs_bio.c
+++ b/sys/kern/vfs_bio.c
@@ -11,7 +11,7 @@
* 2. Absolutely no warranty of function or purpose is made by the author
* John S. Dyson.
*
- * $Id: vfs_bio.c,v 1.190 1999/01/08 17:31:14 eivind Exp $
+ * $Id: vfs_bio.c,v 1.191 1999/01/10 01:58:25 eivind Exp $
*/
/*
@@ -1335,7 +1335,11 @@ static void
vfs_setdirty(struct buf *bp) {
int i;
vm_object_t object;
- vm_offset_t boffset, offset;
+ vm_offset_t boffset;
+#if 0
+ vm_offset_t offset;
+#endif
+
/*
* We qualify the scan for modified pages on whether the
* object has been flushed yet. The OBJ_WRITEABLE flag
@@ -1394,7 +1398,6 @@ getblk(struct vnode * vp, daddr_t blkno, int size, int slpflag, int slptimeo)
struct buf *bp;
int i, s;
struct bufhashhdr *bh;
- int maxsize;
#if !defined(MAX_PERF)
if (size > MAXBSIZE)
@@ -1955,7 +1958,9 @@ biodone(register struct buf * bp)
}
#if defined(VFS_BIO_DEBUG)
if (OFF_TO_IDX(foff) != m->pindex) {
- printf("biodone: foff(%d)/m->pindex(%d) mismatch\n", foff, m->pindex);
+ printf(
+"biodone: foff(%lu)/m->pindex(%d) mismatch\n",
+ (unsigned long)foff, m->pindex);
}
#endif
resid = IDX_TO_OFF(m->pindex + 1) - foff;
@@ -2256,7 +2261,7 @@ vfs_clean_pages(struct buf * bp)
void
vfs_bio_clrbuf(struct buf *bp) {
- int i, size, mask = 0;
+ int i, mask = 0;
caddr_t sa, ea;
if ((bp->b_flags & (B_VMIO | B_MALLOC)) == B_VMIO) {
if( (bp->b_npages == 1) && (bp->b_bufsize < PAGE_SIZE) &&
OpenPOWER on IntegriCloud