X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs2.git;a=blobdiff_plain;f=yaffs_fs.c;h=873de3e698d2fe059d1a3f2e40127ec02dafee81;hp=0a7c39613b9c3aeb0905e180c92231d9bb9e85dd;hb=070b41d99c4b50000f05a89e1e71882b7387810e;hpb=5fa110bde8233848e86ee328fe8082835becb025 diff --git a/yaffs_fs.c b/yaffs_fs.c index 0a7c396..873de3e 100644 --- a/yaffs_fs.c +++ b/yaffs_fs.c @@ -31,7 +31,7 @@ */ const char *yaffs_fs_c_version = - "$Id: yaffs_fs.c,v 1.31 2005-09-21 01:14:03 charles Exp $"; + "$Id: yaffs_fs.c,v 1.32 2005-10-27 07:22:49 marty Exp $"; extern const char *yaffs_guts_c_version; #include @@ -604,9 +604,10 @@ static int yaffs_commit_write(struct file *f, struct page *pg, unsigned offset, } T(YAFFS_TRACE_OS, - (KERN_DEBUG "yaffs_commit_write returning %d\n", nWritten)); + (KERN_DEBUG "yaffs_commit_write returning %d\n", + nWritten == nBytes ? 0 : -1)); - return nWritten; + return nWritten == nBytes ? 0 : -1; }