From 02eba8e909ab8bbcaf2974a1ce7484e42ec5f71c Mon Sep 17 00:00:00 2001 From: Bob Beck Date: Tue, 9 Oct 2012 16:44:16 +0000 Subject: Capilization in comment, and document leftoverroom, + knf nit, spotted by theo --- sys/kern/kern_bufq.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'sys/kern/kern_bufq.c') diff --git a/sys/kern/kern_bufq.c b/sys/kern/kern_bufq.c index 5ec9c32fb15..9cebc7a6e4f 100644 --- a/sys/kern/kern_bufq.c +++ b/sys/kern/kern_bufq.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_bufq.c,v 1.21 2012/10/09 15:36:50 beck Exp $ */ +/* $OpenBSD: kern_bufq.c,v 1.22 2012/10/09 16:44:15 beck Exp $ */ /* * Copyright (c) 2010 Thordur I. Bjornsson * Copyright (c) 2010 David Gwynne @@ -454,7 +454,7 @@ struct bufq_nscan_data { struct bufq_nscan_head sorted; struct bufq_nscan_head fifo; int dir; - int leftoverroom; + int leftoverroom; /* Remaining number of buffer inserts allowed */ }; void bufq_nscan_resort(struct bufq_nscan_data *data); @@ -529,14 +529,14 @@ bufq_nscan_queue(void *vdata, struct buf *bp) struct bufq_nscan_data *data = vdata; /* - * if the previous sorted segment was small, we will continue + * If the previous sorted segment was small, we will continue * packing in bufs as long as they're in order. */ if (data->leftoverroom) { struct buf *next = SIMPLEQ_FIRST(&data->sorted); if (next && BUF_INORDER(next, bp)) { bufq_simple_nscan(&data->sorted, bp); - data->leftoverroom -= 1; + data->leftoverroom--; return; } } -- cgit v1.2.3