Skip to contentSkip to conversation

fsck.f2fs: remove duplicated codes in sanity_check_raw_super

PATCH New Junling Zheng 1 participant 1 message Apr 26, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fsck.f2fs: remove duplicated codes in sanity_check_raw_super

Remove duplicated codes in sanity_check_raw_super().

---
 fsck/mount.c | 4 ----
 1 file changed, 4 deletions(-)
fsck/mount.c +0 -4
index 4bde179..f866c4f 100644
@@ -376,10 +376,6 @@ int sanity_check_raw_super(struct f2fs_super_block *sb, u64 offset)
 	if (get_sb(log_blocks_per_seg) != 9)
 		return -1;
 
-	if (get_sb(log_sectorsize) > F2FS_MAX_LOG_SECTOR_SIZE ||
-			get_sb(log_sectorsize) < F2FS_MIN_LOG_SECTOR_SIZE)
-		return -1;
-
 	/* Currently, support 512/1024/2048/4096 bytes sector size */
 	if (get_sb(log_sectorsize) > F2FS_MAX_LOG_SECTOR_SIZE ||
 			get_sb(log_sectorsize) < F2FS_MIN_LOG_SECTOR_SIZE)
Signature · 9 lines
1.9.1


------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z