• Andrew Morton's avatar
    [PATCH] direct-IO: fix i_size handling on ENOSPC · 7c0f82da
    Andrew Morton authored
    When an appending O_DIRECT write hits ENOSPC we're returning a short write
    which is _too_ short.  The file ends up with an undersized i_size and fsck
    complains.
    
    So update the return value with the partial result before bailing out.
    7c0f82da
direct-io.c 26.2 KB