• Andrew Morton's avatar
    [PATCH] return the correct thing from direct-io · a6d61b6b
    Andrew Morton authored
    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.
    a6d61b6b
direct-io.c 24.1 KB