]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc12bd9be1d0e8e5883e95cb5ba66a9847dbee3dd
treebf6d91500d7015a342053295963ab1a7834e17cb
parent6f9fa6f570bd9f4cd90ea7157ba2eb3e2a688de9
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