From 634fb3f20f67edd9a0ff23858ae73265edd7f126 Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Mon, 23 Apr 2018 23:31:51 +0100 Subject: [PATCH] inode: fix silly bug in direct I/O fix attempt Maybe this time it'll actually work --- Kernel/inode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Kernel/inode.c b/Kernel/inode.c index 9e3dacf1..b98a738f 100644 --- a/Kernel/inode.c +++ b/Kernel/inode.c @@ -95,7 +95,7 @@ void readi(regptr inoptr ino, uint8_t flag) #if !defined(read_direct) bp = NULL; #else - if (pblk != NULLBLK && (bp = bfind(dev, pblk)) == NULL && !ispipe && amount == BLKSIZE && read_direct(flag) == 0) { + if (pblk != NULLBLK && (bp = bfind(dev, pblk)) == NULL && !ispipe && amount == BLKSIZE && read_direct(flag)) { /* we can transfer direct from disk to the userspace buffer */ /* FIXME: allow for async queued I/O here. We want an API something like breadasync() that either -- 2.34.1