mkfs.f2fs: reset sequential zones on device discard

For a zoned blocks device, trim must reset all sequential zones
of the device.

Signed-off-by: Damien Le Moal <damien.lemoal@wdc.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
diff --git a/mkfs/f2fs_format_utils.c b/mkfs/f2fs_format_utils.c
index ba93308..d204bd4 100644
--- a/mkfs/f2fs_format_utils.c
+++ b/mkfs/f2fs_format_utils.c
@@ -58,6 +58,8 @@
 #endif
 		return 0;
 	} else if (S_ISBLK(stat_buf.st_mode)) {
+		if (c.zoned_mode)
+			return f2fs_reset_zones();
 #ifdef BLKSECDISCARD
 		if (ioctl(fd, BLKSECDISCARD, &range) < 0) {
 			MSG(0, "Info: This device doesn't support BLKSECDISCARD\n");