From: Alan Cox Date: Sun, 12 Nov 2017 21:31:55 +0000 (+0000) Subject: devio: change meaning of return from bfree X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=d7d9f6172859502eaa7974e10db296b679a01537;p=FUZIX.git devio: change meaning of return from bfree We need this to keep inode.c sane. As nobody else uses the return code this *should* be fine. --- diff --git a/Kernel/devio.c b/Kernel/devio.c index 24476064..ebf94377 100644 --- a/Kernel/devio.c +++ b/Kernel/devio.c @@ -93,10 +93,12 @@ int bfree(bufptr bp, uint8_t dirty) bp->bf_busy = BF_FREE; if (dirty > 1) { /* immediate writeback */ - if (bdwrite(bp) != BLKSIZE) + if (bdwrite(bp) != BLKSIZE) { udata.u_error = EIO; + return -1; + } bp->bf_dirty = false; - return -1; + return 0; } return 0; }