[PATCH] fsck.f2fs: remove redundant i_ext.len set to zero

From: Daeho Jeong
Date: Mon Sep 09 2024 - 12:46:00 EST


From: Daeho Jeong <daehojeong@xxxxxxxxxx>

Removed a redundant code to set i_ext.len to zero.

Signed-off-by: Daeho Jeong <daehojeong@xxxxxxxxxx>
---
fsck/fsck.c | 2 --
1 file changed, 2 deletions(-)

diff --git a/fsck/fsck.c b/fsck/fsck.c
index 7400dcf..f8607fd 100644
--- a/fsck/fsck.c
+++ b/fsck/fsck.c
@@ -1400,8 +1400,6 @@ skip_blkcnt_fix:
}

if (need_fix && f2fs_dev_is_writable()) {
- if (c.zoned_model == F2FS_ZONED_HM)
- node_blk->i.i_ext.len = 0;
ret = update_block(sbi, node_blk, &ni->blk_addr, NULL);
ASSERT(ret >= 0);
}
--
2.46.0.598.g6f2099f65c-goog