artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b78c698
)
Pass correct size to uvm_vnp_setsize() for large files.
author
millert
<millert@openbsd.org>
Mon, 8 Jan 2018 16:16:16 +0000
(16:16 +0000)
committer
millert
<millert@openbsd.org>
Mon, 8 Jan 2018 16:16:16 +0000
(16:16 +0000)
sys/ufs/ext2fs/ext2fs_readwrite.c
patch
|
blob
|
history
diff --git
a/sys/ufs/ext2fs/ext2fs_readwrite.c
b/sys/ufs/ext2fs/ext2fs_readwrite.c
index
2f77157
..
55d2635
100644
(file)
--- a/
sys/ufs/ext2fs/ext2fs_readwrite.c
+++ b/
sys/ufs/ext2fs/ext2fs_readwrite.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: ext2fs_readwrite.c,v 1.4
2 2018/01/08 16:15:34
millert Exp $ */
+/* $OpenBSD: ext2fs_readwrite.c,v 1.4
3 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);