os/fs/smartfs : Modify number of cleaned entry properly
If next entry or sector is not exist, it clean entry but it doesn't increase count
@@ -2103,6 +2103,7 @@ int smartfs_scan_entry(struct smartfs_mountpt_s *fs, char *map, struct sector_re
fdbg("Error marking entry inactive at sector %d\n", firstsector);
goto errout;
}
+ info->cleanentries++;
} else {
/* Make New node of Entry's first sector and put it to queue */
@@ -2146,6 +2147,7 @@ int smartfs_scan_entry(struct smartfs_mountpt_s *fs, char *map, struct sector_re
goto errout;
}
+ info->cleanentries++;
break;
}
