f2fs: fix to alloc_mode changed after remount on a small volume device
authorYuwei Guan <ssawgyw@gmail.com>
Tue, 15 Nov 2022 06:35:35 +0000 (14:35 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Mon, 28 Nov 2022 20:46:33 +0000 (12:46 -0800)
commitb7ad23cec26a91a4f7c45ff7ff8e915f21ac5127
tree7970653ae4c06daf9f8dd512c042d83512ada684
parent5b7b74b71c7fefbaa3e0ccc120c3cbd50b3fad86
f2fs: fix to alloc_mode changed after remount on a small volume device

The commit 84b89e5d943d8 ("f2fs: add auto tuning for small devices") add
tuning for small volume device, now support to tune alloce_mode to 'reuse'
if it's small size. But the alloc_mode will change to 'default' when do
remount on this small size dievce. This patch fo fix alloc_mode changed
when do remount for a small volume device.

Signed-off-by: Yuwei Guan <Yuwei.Guan@zeekrlife.com>
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/super.c