From e567ebeee5ea196128f15adcf30cec5dd1137f90 Mon Sep 17 00:00:00 2001 From: dzwdz Date: Thu, 7 Jul 2022 20:29:13 +0200 Subject: kernel: add the vfsreq_finish_short shorthand function --- src/kernel/proc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/kernel/proc.c') diff --git a/src/kernel/proc.c b/src/kernel/proc.c index 331e019..b9eb48e 100644 --- a/src/kernel/proc.c +++ b/src/kernel/proc.c @@ -86,7 +86,7 @@ struct process *process_fork(struct process *parent, int flags) { void process_kill(struct process *p, int ret) { if (p->state != PS_DEAD) { if (p->handled_req) { - vfsreq_finish(p->handled_req, -1, 0, NULL); + vfsreq_finish_short(p->handled_req, -1); p->handled_req = NULL; } @@ -99,7 +99,7 @@ void process_kill(struct process *p, int ret) { struct vfs_request *q = p->controlled->queue; while (q) { struct vfs_request *q2 = q->queue_next; - vfsreq_finish(q, -1, 0, NULL); + vfsreq_finish_short(q, -1); q = q2; } p->controlled->queue = NULL; -- cgit v1.2.3