mirror of
https://github.com/torvalds/linux.git
synced 2026-06-08 14:42:37 +02:00
Revert "f2fs: return wrong error number on f2fs_quota_write"
This reverts commit 4f31d26b0c.
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>
This commit is contained in:
parent
5f5f593222
commit
5c15033cea
|
|
@ -1397,7 +1397,7 @@ static ssize_t f2fs_quota_write(struct super_block *sb, int type,
|
||||||
}
|
}
|
||||||
|
|
||||||
if (len == towrite)
|
if (len == towrite)
|
||||||
return 0;
|
return err;
|
||||||
inode->i_version++;
|
inode->i_version++;
|
||||||
inode->i_mtime = inode->i_ctime = current_time(inode);
|
inode->i_mtime = inode->i_ctime = current_time(inode);
|
||||||
f2fs_mark_inode_dirty_sync(inode, false);
|
f2fs_mark_inode_dirty_sync(inode, false);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user