/* If we can only clean to main segment, we may
* have to. However:
* - only do one segment at a time
- * - if there is any clean_reserved, then use it
- * - if there are no 'clean' segments, then clean.
+ * - only if there are no clean (but not yet free) segments
* - if CleanerBlocks, then clean.
* otherwise don't.
*/
- if (fs->clean_reserved
- || fs->segtrack->clean.cnt == 0
- || test_bit(CleanerBlocks, &fs->fsstate))
+ if (fs->segtrack->clean.cnt == 0
+ && test_bit(CleanerBlocks, &fs->fsstate))
max_segs = 1;
}
for (i = 0; i < max_segs; i++) {