]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit - fs/f2fs/f2fs.h
f2fs: avoid using native allocate_segment_by_default()
authorChao Yu <yuchao0@huawei.com>
Wed, 21 Apr 2021 01:54:55 +0000 (09:54 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Thu, 22 Apr 2021 04:00:59 +0000 (21:00 -0700)
commit509f1010e4fc55e2dbfc036317afd573ccd0931c
treebc63db4c655c251770a14cc1fefb7f58cdd08799
parenta7b4e506dcc461c214734d03816c1d47bd88c9a3
f2fs: avoid using native allocate_segment_by_default()

As we did for other cases, in fix_curseg_write_pointer(), let's
use wrapped f2fs_allocate_new_section() instead of native
allocate_segment_by_default(), by this way, it fixes to cover
segment allocation with curseg_lock and sentry_lock.

Signed-off-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/f2fs.h
fs/f2fs/file.c
fs/f2fs/segment.c