We don't need to report an issue, when the zone write pointer already
points to the end of the zone, since the zone mismatch is already taken
care.
Signed-off-by: Daeho Jeong <daehojeong@google.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
break;
}
- // The write pointer matches with the valid blocks
- if (last_valid_block + 1 == wp_block)
+ /*
+ * The write pointer matches with the valid blocks or
+ * already points to the end of the zone.
+ */
+ if ((last_valid_block + 1 == wp_block) ||
+ (zone->wp == zone->start + zone->len))
return 0;
if (last_valid_block + 1 == zone_block) {