OSDN Git Service

yaffs: Fix yaffs_file_write to not return -ENOSPC when there is nothing to write
authorArve Hjønnevåg <arve@android.com>
Thu, 7 May 2009 00:37:10 +0000 (17:37 -0700)
committerArve Hjønnevåg <arve@android.com>
Fri, 8 May 2009 00:58:08 +0000 (17:58 -0700)
commit37db7a3d4d75ce64b621484563d852a0813737e1
tree3810b17b68c7fcadc61f82465ff11453fdcfc588
parent3a5c584e5a7bda713a5fd971ab351ee4b8b8930d
yaffs: Fix yaffs_file_write to not return -ENOSPC when there is nothing to write

yaffs_write_end may get called with copied == 0 if the requested write was
interrupted by a signal, but user-space will not restart the write if -ENOSPC
is returned.

Signed-off-by: Arve Hjønnevåg <arve@android.com>
fs/yaffs2/yaffs_fs.c