git: 0a586a7d756c - stable/14 - linuxkpi: correct zone item size for linux_mm_zone

From: Konstantin Belousov <kib_at_FreeBSD.org>
Date: Mon, 22 Jan 2024 05:01:47 UTC
The branch stable/14 has been updated by kib:

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

commit 0a586a7d756c47ef0e0171e32664467aea4279a0
Author:     Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2024-01-14 21:00:18 +0000
Commit:     Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2024-01-22 05:01:24 +0000

    linuxkpi: correct zone item size for linux_mm_zone
    
    (cherry picked from commit 4958df5dabce62ef4e9e96b0d1bf62f3a6cce689)
---
 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 bec53384361f..c342eb279caa 100644
--- a/sys/compat/linuxkpi/common/src/linux_current.c
+++ b/sys/compat/linuxkpi/common/src/linux_current.c
@@ -294,7 +294,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);