OSDN Git Service
(root)
/
android-x86
/
kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2e513c1
)
Revert "yaffs: Fix yaffs_file_write to not return -ENOSPC when there is nothing to...
author
Arve Hjønnevåg
<arve@android.com>
Thu, 17 Sep 2009 01:33:46 +0000
(18:33 -0700)
committer
Arve Hjønnevåg
<arve@android.com>
Fri, 18 Sep 2009 19:40:41 +0000
(12:40 -0700)
This reverts commit
37db7a3d4d75ce64b621484563d852a0813737e1
.
Signed-off-by: Arve Hjønnevåg <arve@android.com>
fs/yaffs2/yaffs_fs.c
patch
|
blob
|
history
diff --git
a/fs/yaffs2/yaffs_fs.c
b/fs/yaffs2/yaffs_fs.c
index
2288eee
..
30ae7c7
100644
(file)
--- 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 */