diff options
Diffstat (limited to 'src/kernel/vfs')
-rw-r--r-- | src/kernel/vfs/request.c | 2 | ||||
-rw-r--r-- | src/kernel/vfs/request.h | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/src/kernel/vfs/request.c b/src/kernel/vfs/request.c index 1729ca1..dfbd5cd 100644 --- a/src/kernel/vfs/request.c +++ b/src/kernel/vfs/request.c @@ -19,7 +19,7 @@ void vfsreq_create(struct vfs_request req_) { } if (!req->backend || !req->backend->potential_handlers) - vfsreq_finish(req, -1, 0, NULL); + vfsreq_finish_short(req, -1); struct vfs_request **iter = &req->backend->queue; while (*iter != NULL) // find free spot in queue diff --git a/src/kernel/vfs/request.h b/src/kernel/vfs/request.h index 35173ca..7d36a5d 100644 --- a/src/kernel/vfs/request.h +++ b/src/kernel/vfs/request.h @@ -61,6 +61,10 @@ struct vfs_request { void vfsreq_create(struct vfs_request); void vfsreq_finish(struct vfs_request*, int ret, int flags, struct process *handler); +static inline void vfsreq_finish_short(struct vfs_request *req, int ret) { + vfsreq_finish(req, ret, 0, NULL); +} + /** Try to accept an enqueued request */ void vfs_backend_tryaccept(struct vfs_backend *); void vfs_backend_user_accept(struct vfs_request *req); |