diff options
author | dzwdz | 2024-03-13 22:33:38 +0100 |
---|---|---|
committer | dzwdz | 2024-03-13 22:46:47 +0100 |
commit | 72f55421fb61b750512f324d284b30e3e67e36e0 (patch) | |
tree | 8933dc013580a2440730644807a03606c6805547 /src/kernel/vfs/request.c | |
parent | e47412d940db4e9be2d05608272e30f560a275d0 (diff) |
kernel/malloc: slight rework (it's still bad), store more metadata
Diffstat (limited to 'src/kernel/vfs/request.c')
-rw-r--r-- | src/kernel/vfs/request.c | 4 |
1 files changed, 2 insertions, 2 deletions
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) { |