f2fs: fix to cover __allocate_new_section() with curseg_lock
authorChao Yu <yuchao0@huawei.com>
Fri, 26 Mar 2021 01:46:22 +0000 (09:46 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Fri, 26 Mar 2021 17:27:46 +0000 (10:27 -0700)
commit823d13e12b6cbaef2f6e5d63c648643e7bc094dd
tree1fb70aa744cc1cc54c3421463f510e69e69e1444
parent753a8ed0ae9c196a7d09a17aae1e354cabd1233d
f2fs: fix to cover __allocate_new_section() with curseg_lock

In order to avoid race with f2fs_do_replace_block().

Fixes: f5a53edcf01e ("f2fs: support aligned pinned file")
Signed-off-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/segment.c