f2fs: fix wrong alloc_type in f2fs_do_replace_block
authorWang Xiaojun <wangxiaojun11@huawei.com>
Thu, 25 Mar 2021 14:19:20 +0000 (10:19 -0400)
committerJaegeuk Kim <jaegeuk@kernel.org>
Fri, 26 Mar 2021 17:27:45 +0000 (10:27 -0700)
commit753a8ed0ae9c196a7d09a17aae1e354cabd1233d
tree40d71e35ab4b7554fe4ccd0a1b77dee66f8c9b35
parente8bf1f522aee3b3e1e7658e8f224dca1d88c3338
f2fs: fix wrong alloc_type in f2fs_do_replace_block

If the alloc_type of the original curseg is LFS,
when we change_curseg and then do recover curseg,
the alloc_type becomes SSR.

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