f2fs: simplify the processing logic of retry_cnt
PATCH 1/1 f2fs: simplify the processing logic of retry_cnt
Replace
if (a > 0) {
a--;
}with:
if (a-- > 0) {
}Signed-off-by Yangtao Li <[email protected]>
--- fs/f2fs/super.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
fs/f2fs/super.c +1 -2
@@ -4769,8 +4769,7 @@ static int f2fs_fill_super(struct super_block *sb, void *data, int silent)kfree (sbi);/* give only one another chance */ -if (retry_cnt >0 && skip_recovery) { - retry_cnt--; +if (skip_recovery && retry_cnt-- >0 ) {shrink_dcache_sb (sb); goto try_onemore; }
Signature · 8 lines
2.39.0 _______________________________________________ Linux-f2fs-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel