projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
db048b7
)
Revert "yaffs: Fix yaffs_file_write to not return -ENOSPC when there is nothing to...
author
黄涛
<huangtao@rock-chips.com>
Sat, 30 Jul 2011 14:45:13 +0000
(22:45 +0800)
committer
黄涛
<huangtao@rock-chips.com>
Sat, 30 Jul 2011 14:45:13 +0000
(22:45 +0800)
This reverts commit
567940aa0a576440a6f64b8bb2517c378f6b6886
.
fs/yaffs2/yaffs_fs.c
patch
|
blob
|
history
diff --git
a/fs/yaffs2/yaffs_fs.c
b/fs/yaffs2/yaffs_fs.c
index 2288eeee2d77ba911eeb388da89e1f999a9d5637..30ae7c7e259a6518eefc94953655280fdeb5394e 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 */