summaryrefslogtreecommitdiff
path: root/src/kernel/handle.c
diff options
context:
space:
mode:
authordzwdz2024-07-07 17:42:18 +0200
committerdzwdz2024-07-07 17:42:18 +0200
commit8138ba97608ff0cd4e443994390f277eca3d7b28 (patch)
tree59b6066071f50aa0e7dc209cc5f7ef3433db1987 /src/kernel/handle.c
parenta4975c459dec3a37e1634ad9b25c05f4caa4f1b0 (diff)
kernel/vfs: split vfs_backend_refdown into two functions
Diffstat (limited to 'src/kernel/handle.c')
-rw-r--r--src/kernel/handle.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/kernel/handle.c b/src/kernel/handle.c
index 882a4fa..f216c13 100644
--- a/src/kernel/handle.c
+++ b/src/kernel/handle.c
@@ -39,8 +39,9 @@ void handle_close(Handle *h) {
if (h->req) vfsreq_finish_short(h->req, -1);
}
- if (h->backend)
- vfs_backend_refdown(h->backend, true);
+ if (h->backend) {
+ vfsback_userdown(h->backend);
+ }
// TODO sanity check to check if refcount is true. handle_sanity?