From: Jaegeuk Kim Date: Thu, 19 Oct 2017 19:07:11 +0000 (-0700) Subject: Revert "f2fs: return wrong error number on f2fs_quota_write" X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=bc69d56024124a74d8a5c3c02847ef24fa5895b9;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Jaegeuk Kim --- 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);