From: millert Date: Mon, 8 Jan 2018 16:16:16 +0000 (+0000) Subject: Pass correct size to uvm_vnp_setsize() for large files. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=392d10d7cd94d87435f2df3d96191b3fbcf6c8e2;p=openbsd Pass correct size to uvm_vnp_setsize() for large files. --- diff --git a/sys/ufs/ext2fs/ext2fs_readwrite.c b/sys/ufs/ext2fs/ext2fs_readwrite.c index 2f7715739d3..55d2635b323 100644 --- a/sys/ufs/ext2fs/ext2fs_readwrite.c +++ b/sys/ufs/ext2fs/ext2fs_readwrite.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ext2fs_readwrite.c,v 1.42 2018/01/08 16:15:34 millert Exp $ */ +/* $OpenBSD: ext2fs_readwrite.c,v 1.43 2018/01/08 16:16:16 millert Exp $ */ /* $NetBSD: ext2fs_readwrite.c,v 1.16 2001/02/27 04:37:47 chs Exp $ */ /*- @@ -313,7 +313,7 @@ ext2fs_write(void *v) error = ext2fs_setsize(ip, uio->uio_offset + xfersize); if (error) break; - uvm_vnp_setsize(vp, ip->i_e2fs_size); + uvm_vnp_setsize(vp, ext2fs_size(ip)); extended = 1; } uvm_vnp_uncache(vp);