From 8138ba97608ff0cd4e443994390f277eca3d7b28 Mon Sep 17 00:00:00 2001 From: dzwdz Date: Sun, 7 Jul 2024 17:42:18 +0200 Subject: kernel/vfs: split vfs_backend_refdown into two functions --- src/kernel/vfs/request.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/kernel/vfs/request.h') diff --git a/src/kernel/vfs/request.h b/src/kernel/vfs/request.h index 182202c..2bd8c61 100644 --- a/src/kernel/vfs/request.h +++ b/src/kernel/vfs/request.h @@ -74,6 +74,8 @@ static inline void vfsreq_finish_short(VfsReq *req, long ret) { /** Try to accept an enqueued request */ void vfs_backend_tryaccept(VfsBackend *); -// TODO the bool arg is confusing. maybe this should just be a function -// that verified the refcount and potentially frees the backend -void vfs_backend_refdown(VfsBackend *, bool use); +/** Decrements the "user" reference count. */ +void vfsback_userdown(VfsBackend *); + +/** Decrements the "provider" reference count. */ +void vfsback_provdown(VfsBackend *); -- cgit v1.2.3