Module Name: src Committed By: christos Date: Tue Apr 4 21:07:50 UTC 2017
Modified Files: src/sys/fs/puffs: puffs_vnops.c Log Message: use MAX_PAGE_SIZE. To generate a diff of this commit: cvs rdiff -u -r1.205 -r1.206 src/sys/fs/puffs/puffs_vnops.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/fs/puffs/puffs_vnops.c diff -u src/sys/fs/puffs/puffs_vnops.c:1.205 src/sys/fs/puffs/puffs_vnops.c:1.206 --- src/sys/fs/puffs/puffs_vnops.c:1.205 Thu Jul 21 14:21:27 2016 +++ src/sys/fs/puffs/puffs_vnops.c Tue Apr 4 17:07:50 2017 @@ -1,4 +1,4 @@ -/* $NetBSD: puffs_vnops.c,v 1.205 2016/07/21 18:21:27 christos Exp $ */ +/* $NetBSD: puffs_vnops.c,v 1.206 2017/04/04 21:07:50 christos Exp $ */ /* * Copyright (c) 2005, 2006, 2007 Antti Kantee. All Rights Reserved. @@ -30,7 +30,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: puffs_vnops.c,v 1.205 2016/07/21 18:21:27 christos Exp $"); +__KERNEL_RCSID(0, "$NetBSD: puffs_vnops.c,v 1.206 2017/04/04 21:07:50 christos Exp $"); #include <sys/param.h> #include <sys/buf.h> @@ -1147,7 +1147,7 @@ puffs_vnop_getattr(void *v) static void zerofill_lastpage(struct vnode *vp, voff_t off) { - char zbuf[16384]; + char zbuf[MAX_PAGE_SIZE]; struct iovec iov; struct uio uio; vsize_t len;