]> err.no Git - linux-2.6/blobdiff - fs/fat/inode.c
Pull error-inject into release branch
[linux-2.6] / fs / fat / inode.c
index 7610735442178f8081a50004ce45977a9e671994..9bfe607c892ec835161ee461e1cb1379d5133dc6 100644 (file)
@@ -173,10 +173,12 @@ static ssize_t fat_direct_IO(int rw, struct kiocb *iocb,
                 *
                 * But we must fill the remaining area or hole by nul for
                 * updating ->mmu_private.
+                *
+                * Return 0, and fallback to normal buffered write.
                 */
                loff_t size = offset + iov_length(iov, nr_segs);
                if (MSDOS_I(inode)->mmu_private < size)
-                       return -EINVAL;
+                       return 0;
        }
 
        /*