diff options
author | phk <phk@FreeBSD.org> | 1999-09-20 19:53:23 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 1999-09-20 19:53:23 +0000 |
commit | c0818069f7d5c0aa756e24c5d4605e5c1da60edc (patch) | |
tree | 422020e9e6dd53768275b4e0e2d99cd66cd75309 /sys/kern/vfs_export.c | |
parent | 00b895590eab4794801adbd3611f3c9f841bd566 (diff) | |
download | FreeBSD-src-c0818069f7d5c0aa756e24c5d4605e5c1da60edc.zip FreeBSD-src-c0818069f7d5c0aa756e24c5d4605e5c1da60edc.tar.gz |
Initialize vp->v_maxio to its default in getnetvnode() rather than
four different places in vfs_cluster.c
Diffstat (limited to 'sys/kern/vfs_export.c')
-rw-r--r-- | sys/kern/vfs_export.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/vfs_export.c b/sys/kern/vfs_export.c index 6737312..43f4be3 100644 --- a/sys/kern/vfs_export.c +++ b/sys/kern/vfs_export.c @@ -573,7 +573,6 @@ getnewvnode(tag, mp, vops, vpp) vp->v_clen = 0; vp->v_socket = 0; vp->v_writecount = 0; /* XXX */ - vp->v_maxio = 0; } else { simple_unlock(&vnode_free_list_slock); vp = (struct vnode *) zalloc(vnode_zone); @@ -595,6 +594,7 @@ getnewvnode(tag, mp, vops, vpp) *vpp = vp; vp->v_usecount = 1; vp->v_data = 0; + vp->v_maxio = DFLTPHYS; splx(s); vfs_object_create(vp, p, p->p_ucred); |