All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] mkfs.f2fs: fix bad assignment of total_sectors for f2fs_configuration
@ 2017-01-24  2:42 Kinglong Mee
  2017-01-24  3:06 ` Sheng Yong
  0 siblings, 1 reply; 4+ messages in thread
From: Kinglong Mee @ 2017-01-24  2:42 UTC (permalink / raw)
  To: Jaegeuk Kim, linux-f2fs-devel

wanted_total_sectors is introduced instead total_sectors,
so that, the initialize is a fault, drop it.

Signed-off-by: Kinglong Mee <kinglongmee@gmail.com>
---
 mkfs/f2fs_format_main.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/mkfs/f2fs_format_main.c b/mkfs/f2fs_format_main.c
index db1dc94..5bb1faf 100644
--- a/mkfs/f2fs_format_main.c
+++ b/mkfs/f2fs_format_main.c
@@ -151,9 +151,6 @@ static void f2fs_parse_options(int argc, char *argv[])
 		c.wanted_total_sectors = atoll(argv[optind+1]);
 	}
 
-	if ((optind + 1) < argc)
-		c.total_sectors = atoll(argv[optind+1]);
-
 	if (c.zoned_mode)
 		c.feature |= cpu_to_le32(F2FS_FEATURE_BLKZONED);
 }
-- 
2.9.3


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-02-03  9:41 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-01-24  2:42 [PATCH] mkfs.f2fs: fix bad assignment of total_sectors for f2fs_configuration Kinglong Mee
2017-01-24  3:06 ` Sheng Yong
2017-02-03  8:08   ` Kinglong Mee
2017-02-03  9:40     ` Sheng Yong

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.