From 72f55421fb61b750512f324d284b30e3e67e36e0 Mon Sep 17 00:00:00 2001 From: dzwdz Date: Wed, 13 Mar 2024 22:33:38 +0100 Subject: kernel/malloc: slight rework (it's still bad), store more metadata --- src/kernel/vfs/request.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/kernel/vfs/request.c') diff --git a/src/kernel/vfs/request.c b/src/kernel/vfs/request.c index 3a42c2a..21eecb8 100644 --- a/src/kernel/vfs/request.c +++ b/src/kernel/vfs/request.c @@ -13,11 +13,11 @@ void vfsreq_create(VfsReq req_) { if (req_.caller) { proc_setstate(req_.caller, PS_WAITS4FS); if (!req_.caller->reqslot) - req_.caller->reqslot = kmalloc(sizeof *req); + req_.caller->reqslot = kmalloc(sizeof *req, "reqslot"); req = req_.caller->reqslot; /* (re)using a single allocation for all request a process makes */ } else { - req = kmalloc(sizeof *req); + req = kmalloc(sizeof *req, "reqanon"); } memcpy(req, &req_, sizeof *req); if (req->backend) { -- cgit v1.2.3