diff options
author | Jaegeuk Kim <jaegeuk@kernel.org> | 2017-10-19 12:07:11 -0700 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2017-10-26 10:44:23 +0200 |
commit | 6e5b5d41c93ef79e9f297f9a3b40730bf0b41f31 (patch) | |
tree | 6600a3b609223b702ae2d3551e29d222e13469fd | |
parent | 9c77f754f8a29f11b3f525100f092d9af874daa8 (diff) | |
download | linux-6e5b5d41c93ef79e9f297f9a3b40730bf0b41f31.tar.gz linux-6e5b5d41c93ef79e9f297f9a3b40730bf0b41f31.tar.bz2 linux-6e5b5d41c93ef79e9f297f9a3b40730bf0b41f31.zip |
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.c | 2 |
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); |