]> git.ipfire.org Git - people/ms/linux.git/commit - fs/f2fs/compress.c
f2fs: fix quota_sync failure due to f2fs_lock_op
authorJaegeuk Kim <jaegeuk@kernel.org>
Thu, 9 Apr 2020 17:25:21 +0000 (10:25 -0700)
committerJaegeuk Kim <jaegeuk@kernel.org>
Fri, 24 Apr 2020 03:34:15 +0000 (20:34 -0700)
commit435cbab95e3966cd8310addd9e9b758dce0e8b84
treebf6d91500d7015a342053295963ab1a7834e17cb
parent8b83ac81f4283ae3bd05c9a7e15dca721014dd03
f2fs: fix quota_sync failure due to f2fs_lock_op

f2fs_quota_sync() uses f2fs_lock_op() before flushing dirty pages, but
f2fs_write_data_page() returns EAGAIN.
Likewise dentry blocks, we can just bypass getting the lock, since quota
blocks are also maintained by checkpoint.

Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/compress.c
fs/f2fs/data.c