diff options
author | Arve Hjønnevåg <arve@android.com> | 2009-09-16 18:33:46 -0700 |
---|---|---|
committer | Arve Hjønnevåg <arve@android.com> | 2009-09-18 12:40:41 -0700 |
commit | 16259922b79cc7be7cec7f518f8729e0e66d9aa6 (patch) | |
tree | 337d1ea9f825fb5b4b98c09c3caefa7b0d58ba79 /fs | |
parent | 2e513c1f05a9d065ca8c3cad7ee95d81ccd66fdb (diff) |
Revert "yaffs: Fix yaffs_file_write to not return -ENOSPC when there is nothing to write"
This reverts commit 37db7a3d4d75ce64b621484563d852a0813737e1.
Signed-off-by: Arve Hjønnevåg <arve@android.com>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/yaffs2/yaffs_fs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/yaffs2/yaffs_fs.c b/fs/yaffs2/yaffs_fs.c index 2288eeee2d77..30ae7c7e259a 100644 --- a/fs/yaffs2/yaffs_fs.c +++ b/fs/yaffs2/yaffs_fs.c @@ -1075,7 +1075,7 @@ static ssize_t yaffs_file_write(struct file *f, const char *buf, size_t n, } yaffs_GrossUnlock(dev); - return (!nWritten && n) ? -ENOSPC : nWritten; + return nWritten == 0 ? -ENOSPC : nWritten; } /* Space holding and freeing is done to ensure we have space available for write_begin/end */ |