[f2fs-dev] [PATCH 0/3] alloc_mode changed after remount on a small volume device

2022-11-12 Thread Yuwei Guan
This series contains a fix patch for alloc_mode changed after remount on a small volume device, and do cleanup for 'f2fs_tuning_parameters' function. The last one change type for sbi->readdir_ra. Yuwei Guan (3): f2fs: fix to alloc_mode changed after remount on a small volume device f2fs:

[f2fs-dev] [PATCH 3/3] f2fs: change type for 'sbi->readdir_ra'

2022-11-12 Thread Yuwei Guan
Before this patch, the varibale 'readdir_ra' takes effect if it's equal to '1' or not, so we can change type for it from 'int' to 'bool'. Signed-off-by: Yuwei Guan --- fs/f2fs/dir.c | 7 +++ fs/f2fs/f2fs.h | 2 +- fs/f2fs/super.c | 2 +- fs/f2fs/sysfs.c | 5 + 4 files changed, 10

[f2fs-dev] [PATCH 2/3] f2fs: cleanup for 'f2fs_tuning_parameters' function

2022-11-12 Thread Yuwei Guan
A cleanup patch for 'f2fs_tuning_parameters' function. Signed-off-by: Yuwei Guan --- fs/f2fs/super.c | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c index 2f36824ff84b..f18ae5410b2c 100644 --- a/fs/f2fs/super.c +++ b/fs/f2fs/super.c

[f2fs-dev] [PATCH 1/3] f2fs: fix to alloc_mode changed after remount on a small volume device

2022-11-12 Thread Yuwei Guan
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. The commit 4cac90d5491c9 ("f2fs: relocate