summaryrefslogtreecommitdiff
path: root/src/kernel/vfs
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel/vfs')
-rw-r--r--src/kernel/vfs/mount.c4
-rw-r--r--src/kernel/vfs/procfs.c4
-rw-r--r--src/kernel/vfs/request.c2
3 files changed, 5 insertions, 5 deletions
diff --git a/src/kernel/vfs/mount.c b/src/kernel/vfs/mount.c
index fa5d65b..bd47dd8 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, "root bck");
- VfsMount *mount = kmalloc(sizeof *mount, "root mnt");
+ VfsBackend *backend = kmalloc(sizeof *backend, TagKernelFs);
+ VfsMount *mount = kmalloc(sizeof *mount, TagMountRoot);
*backend = (VfsBackend) {
.is_user = false,
.usehcnt = 1,
diff --git a/src/kernel/vfs/procfs.c b/src/kernel/vfs/procfs.c
index 86042cd..ab57628 100644
--- a/src/kernel/vfs/procfs.c
+++ b/src/kernel/vfs/procfs.c
@@ -73,7 +73,7 @@ openpath(const char *path, size_t len, Proc *root)
return NULL;
}
- h = kmalloc(sizeof *h, "proc fd");
+ h = kmalloc(sizeof *h, TagProcessHandle);
h->gid = gid;
h->type = type;
return h;
@@ -182,7 +182,7 @@ isdigit(int c) {
VfsBackend *
procfs_backend(Proc *proc)
{
- VfsBackend *be = kzalloc(sizeof(VfsBackend), "kern fs");
+ VfsBackend *be = kzalloc(sizeof(VfsBackend), TagProcFs);
*be = (VfsBackend) {
.is_user = false,
.usehcnt = 1,
diff --git a/src/kernel/vfs/request.c b/src/kernel/vfs/request.c
index 8e6f14a..92b904f 100644
--- a/src/kernel/vfs/request.c
+++ b/src/kernel/vfs/request.c
@@ -34,7 +34,7 @@ vfsreq_dispatchcopy(VfsReq tmpl)
VfsBackend *backend;
/* allocate memory for the request and move it there */
- req = kmalloc(sizeof *req, "VfsReq");
+ req = kmalloc(sizeof *req, TagVfsReq);
memcpy(req, &tmpl, sizeof *req);
backend = req->backend;
if (backend) {