summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaegeuk Kim <jaegeuk@kernel.org>2017-10-19 12:07:11 -0700
committerJaegeuk Kim <jaegeuk@kernel.org>2017-10-26 10:44:23 +0200
commit6e5b5d41c93ef79e9f297f9a3b40730bf0b41f31 (patch)
tree6600a3b609223b702ae2d3551e29d222e13469fd
parent9c77f754f8a29f11b3f525100f092d9af874daa8 (diff)
Revert "f2fs: return wrong error number on f2fs_quota_write"
This reverts commit 4f31d26b0c17f2aae6a6afeb823a87e20671ab4b. It turns out that we need to report error number if nothing was written. Reviewed-by: Chao Yu <yuchao0@huawei.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
-rw-r--r--fs/f2fs/super.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c
index c32a1e1db240..491dce39d47a 100644
--- a/fs/f2fs/super.c
+++ b/fs/f2fs/super.c
@@ -1396,7 +1396,7 @@ retry:
}
if (len == towrite)
- return 0;
+ return err;
inode->i_version++;
inode->i_mtime = inode->i_ctime = current_time(inode);
f2fs_mark_inode_dirty_sync(inode, false);