[PATCH v2 1/2] fs-tests: integck: Refactor: split out common remount logic
Zhihao Cheng
chengzhihao1 at huawei.com
Mon Aug 26 05:31:38 PDT 2024
在 2024/8/26 19:24, Csókás, Bence 写道:
> remount_tested_fs() and recover_tested_fs() both have
> almost the same code for umount'ing the target FS and
> mount'ing it back. Split this sequence into a new
> function called umount_and_remount().
>
> Signed-off-by: Csókás, Bence <csokas.bence at prolan.hu>
> ---
>
> Notes:
> `--color-moved` is recommended
>
> Changes in v2:
> * keep CHECK()ing the return value of umount() to avoid busylocking recover_tested_fs()'s callers
>
> tests/fs-tests/integrity/integck.c | 200 +++++++++++++----------------
> 1 file changed, 92 insertions(+), 108 deletions(-)
>
Reviewed-by: Zhihao Cheng <chengzhihao1 at huawei.com>
More information about the linux-mtd
mailing list