diff options
author | dzwdz | 2023-01-06 21:11:44 +0100 |
---|---|---|
committer | dzwdz | 2023-01-06 21:11:44 +0100 |
commit | a1a4ab33cd75f0bc1d5e71989b01ba3446c998ae (patch) | |
tree | 4796f9ffc780dcb0336ed7c66c0cb42584320d61 /src/kernel/vfs/request.c | |
parent | e0c7bad47a54d865ef6194643e2cd20f6094e507 (diff) |
kernel: basic procfs
Diffstat (limited to 'src/kernel/vfs/request.c')
-rw-r--r-- | src/kernel/vfs/request.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/kernel/vfs/request.c b/src/kernel/vfs/request.c index a129f2e..2288de5 100644 --- a/src/kernel/vfs/request.c +++ b/src/kernel/vfs/request.c @@ -155,7 +155,9 @@ void vfs_backend_refdown(struct vfs_backend *b) { assert(b); assert(b->refcount > 0); if (--(b->refcount) > 0) return; - assert(!b->queue); + if (!b->is_user && b->kern.cleanup) { + b->kern.cleanup(b); + } kfree(b); } |