git: a006c6a0d452 - stable/14 - tarfs: Inherit mnt_iosize_max from the lower vnode

From: Mark Johnston <markj_at_FreeBSD.org>
Date: Mon, 15 Apr 2024 14:05:26 UTC
The branch stable/14 has been updated by markj:

URL: https://cgit.FreeBSD.org/src/commit/?id=a006c6a0d45232d9bde1c50984462a69b058a313

commit a006c6a0d45232d9bde1c50984462a69b058a313
Author:     Mark Johnston <markj@FreeBSD.org>
AuthorDate: 2024-04-04 14:54:06 +0000
Commit:     Mark Johnston <markj@FreeBSD.org>
CommitDate: 2024-04-15 14:05:13 +0000

    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
    
    (cherry picked from commit 91eca18551554b7aca80fcfd3c648f524b321252)
---
 sys/fs/tarfs/tarfs_vfsops.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/sys/fs/tarfs/tarfs_vfsops.c b/sys/fs/tarfs/tarfs_vfsops.c
index 365234113168..a534b18ebf34 100644
--- a/sys/fs/tarfs/tarfs_vfsops.c
+++ b/sys/fs/tarfs/tarfs_vfsops.c
@@ -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__);