]> git.neil.brown.name Git - history.git/commit
[PATCH] return the correct thing from direct-io
authorAndrew Morton <akpm@digeo.com>
Wed, 8 Jan 2003 01:48:21 +0000 (17:48 -0800)
committerTrond Myklebust <trond.myklebust@fys.uio.no>
Wed, 8 Jan 2003 01:48:21 +0000 (17:48 -0800)
commita6d61b6b2c6268f8ff493e0978cfbbaf2c74655c
tree33ab0b809210fd22150e4a9bb89443680cd2a3eb
parent90c4bb0523a4fa08090f5123400eebc3e6fbeaf1
[PATCH] return the correct thing from direct-io

If direct-io encounters an error, it currently returns that error even if it
performed some I/O.

Change it so that if there is an error and we read or wrote something, return
the number of bytes written/read.  Only return the error code if zero bytes
were written/read.
fs/direct-io.c