Module Name: src Committed By: mlelstv Date: Fri Feb 26 22:24:07 UTC 2010
Modified Files: src/sys/kern: vfs_wapbl.c Log Message: mnt_fs_bshift is the filesystem block size, not the fragment size. Revert to physical block size. This is fine as long as filesystem and log stay on a similar physical medium. To generate a diff of this commit: cvs rdiff -u -r1.31 -r1.32 src/sys/kern/vfs_wapbl.c 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_wapbl.c diff -u src/sys/kern/vfs_wapbl.c:1.31 src/sys/kern/vfs_wapbl.c:1.32 --- src/sys/kern/vfs_wapbl.c:1.31 Tue Feb 23 20:51:25 2010 +++ src/sys/kern/vfs_wapbl.c Fri Feb 26 22:24:07 2010 @@ -1,4 +1,4 @@ -/* $NetBSD: vfs_wapbl.c,v 1.31 2010/02/23 20:51:25 mlelstv Exp $ */ +/* $NetBSD: vfs_wapbl.c,v 1.32 2010/02/26 22:24:07 mlelstv 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.31 2010/02/23 20:51:25 mlelstv Exp $"); +__KERNEL_RCSID(0, "$NetBSD: vfs_wapbl.c,v 1.32 2010/02/26 22:24:07 mlelstv Exp $"); #include <sys/param.h> #include <sys/bitops.h> @@ -319,7 +319,7 @@ daddr_t logpbn; int error; int log_dev_bshift = ilog2(blksize); - int fs_dev_bshift = mp->mnt_fs_bshift; /* XXX */ + int fs_dev_bshift = log_dev_bshift; int run; WAPBL_PRINTF(WAPBL_PRINT_OPEN, ("wapbl_start: vp=%p off=%" PRId64