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/mount.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/kernel/vfs/mount.c') diff --git a/src/kernel/vfs/mount.c b/src/kernel/vfs/mount.c index c153c69..adf9b8c 100644 --- a/src/kernel/vfs/mount.c +++ b/src/kernel/vfs/mount.c @@ -10,8 +10,8 @@ VfsMount *vfs_mount_seed(void) { } void vfs_root_register(const char *path, void (*accept)(VfsReq *)) { - VfsBackend *backend = kmalloc(sizeof *backend); - VfsMount *mount = kmalloc(sizeof *mount); + VfsBackend *backend = kmalloc(sizeof *backend, "root bck"); + VfsMount *mount = kmalloc(sizeof *mount, "root mnt"); *backend = (VfsBackend) { .is_user = false, .usehcnt = 1, -- cgit v1.2.3