git: 4958df5dabce - main - linuxkpi: correct zone item size for linux_mm_zone

From: Konstantin Belousov <kib_at_FreeBSD.org>
Date: Mon, 15 Jan 2024 12:13:59 UTC
The branch main has been updated by kib:

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

commit 4958df5dabce62ef4e9e96b0d1bf62f3a6cce689
Author:     Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2024-01-14 21:00:18 +0000
Commit:     Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2024-01-15 11:59:50 +0000

    linuxkpi: correct zone item size for linux_mm_zone
    
    Reviewed by:    manu, markj
    Sponsored by:   NVidia networking
    MFC after:      1 week
    Differential revision:  https://reviews.freebsd.org/D43455
---
 sys/compat/linuxkpi/common/src/linux_current.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/compat/linuxkpi/common/src/linux_current.c b/sys/compat/linuxkpi/common/src/linux_current.c
index 04ad4e30aa54..64b5b8be4c6a 100644
--- a/sys/compat/linuxkpi/common/src/linux_current.c
+++ b/sys/compat/linuxkpi/common/src/linux_current.c
@@ -315,7 +315,7 @@ linux_current_init(void *arg __unused)
 	uma_zone_reserve(linux_current_zone, lkpi_task_resrv);
 	uma_prealloc(linux_current_zone, lkpi_task_resrv);
 	linux_mm_zone = uma_zcreate("lkpimm",
-	    sizeof(struct task_struct), NULL, NULL, NULL, NULL,
+	    sizeof(struct mm_struct), NULL, NULL, NULL, NULL,
 	    UMA_ALIGN_PTR, 0);
 	uma_zone_reserve(linux_mm_zone, lkpi_task_resrv);
 	uma_prealloc(linux_mm_zone, lkpi_task_resrv);