diff options
author | Bob Beck <beck@cvs.openbsd.org> | 2012-10-09 16:44:16 +0000 |
---|---|---|
committer | Bob Beck <beck@cvs.openbsd.org> | 2012-10-09 16:44:16 +0000 |
commit | 02eba8e909ab8bbcaf2974a1ce7484e42ec5f71c (patch) | |
tree | 34210cab223e18201c10c05b3fc162a5f79264e8 /sys/kern/kern_bufq.c | |
parent | 2d4797de8c2563235b7f6729d1448d77f85832d2 (diff) |
Capilization in comment, and document leftoverroom, + knf nit, spotted by theo
Diffstat (limited to 'sys/kern/kern_bufq.c')
-rw-r--r-- | sys/kern/kern_bufq.c | 8 |
1 files changed, 4 insertions, 4 deletions
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 <thib@openbsd.org> * Copyright (c) 2010 David Gwynne <dlg@openbsd.org> @@ -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; } } |