From: Jaegeuk Kim Date: Sun, 30 Jul 2017 16:45:14 +0000 (-0700) Subject: f2fs: return wrong error number on f2fs_quota_write X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=4f31d26b0c17f2aae6a6afeb823a87e20671ab4b;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git f2fs: return wrong error number on f2fs_quota_write This must return size, not error number. Signed-off-by: Jaegeuk Kim --- diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c index d53a08ecd4d4..4c28576c5b30 100644 --- a/fs/f2fs/super.c +++ b/fs/f2fs/super.c @@ -1122,7 +1122,7 @@ static ssize_t f2fs_quota_write(struct super_block *sb, int type, } if (len == towrite) - return err; + return 0; inode->i_version++; inode->i_mtime = inode->i_ctime = current_time(inode); f2fs_mark_inode_dirty_sync(inode, false);