tarfs: Inherit mnt_iosize_max from the lower vnode

There is no obvious reason to use a value smaller than that.

Reviewed by:	des, kib
MFC after:	1 week
Sponsored by:	Klara, Inc.
Differential Revision:	https://reviews.freebsd.org/D44627
This commit is contained in:
Mark Johnston 2024-04-04 10:54:06 -04:00
parent bee7cf9e97
commit 91eca18551

View file

@ -881,6 +881,8 @@ tarfs_alloc_mount(struct mount *mp, struct vnode *vp,
VOP_UNLOCK(vp);
mtime = va.va_mtime.tv_sec;
mp->mnt_iosize_max = vp->v_mount->mnt_iosize_max;
/* Allocate and initialize tarfs mount structure */
tmp = malloc(sizeof(*tmp), M_TARFSMNT, M_WAITOK | M_ZERO);
TARFS_DPF(ALLOC, "%s: Allocated mount structure\n", __func__);