Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern misplaced comment
details: https://anonhg.NetBSD.org/src/rev/1892ed5ea947
branches: trunk
changeset: 818060:1892ed5ea947
user: jdolecek <jdolecek%NetBSD.org@localhost>
date: Thu Sep 22 16:22:29 2016 +0000
description:
misplaced comment
diffstat:
sys/kern/vfs_wapbl.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (34 lines):
diff -r d7de2baadb28 -r 1892ed5ea947 sys/kern/vfs_wapbl.c
--- a/sys/kern/vfs_wapbl.c Thu Sep 22 16:20:56 2016 +0000
+++ b/sys/kern/vfs_wapbl.c Thu Sep 22 16:22:29 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vfs_wapbl.c,v 1.79 2016/09/22 16:20:56 jdolecek Exp $ */
+/* $NetBSD: vfs_wapbl.c,v 1.80 2016/09/22 16:22:29 jdolecek Exp $ */
/*-
* Copyright (c) 2003, 2008, 2009 The NetBSD Foundation, Inc.
@@ -36,7 +36,7 @@
#define WAPBL_INTERNAL
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vfs_wapbl.c,v 1.79 2016/09/22 16:20:56 jdolecek Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vfs_wapbl.c,v 1.80 2016/09/22 16:22:29 jdolecek Exp $");
#include <sys/param.h>
#include <sys/bitops.h>
@@ -502,7 +502,6 @@
/* XXX fix actual number of buffers reserved per filesystem. */
wl->wl_bufcount_max = (nbuf / 2) * 1024;
- /* Calculate number of blocks described in a blocklist header */
wl->wl_brperjblock = ((1<<wl->wl_log_dev_bshift)
- offsetof(struct wapbl_wc_blocklist, wc_blocks)) /
sizeof(((struct wapbl_wc_blocklist *)0)->wc_blocks[0]);
@@ -2076,6 +2075,7 @@
int blocklen = 1<<wl->wl_log_dev_bshift;
size_t len;
+ /* Calculate number of blocks described in a blocklist header */
len = wl->wl_bcount;
len += howmany(wl->wl_bufcount, wl->wl_brperjblock) * blocklen;
len += howmany(wl->wl_dealloccnt, wl->wl_brperjblock) * blocklen;
Home |
Main Index |
Thread Index |
Old Index