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

Daeho Jeong posted 1 patch 2 months, 3 weeks ago
fsck/fsck.c | 2 --
1 file changed, 2 deletions(-)
[PATCH] fsck.f2fs: remove redundant i_ext.len set to zero
Posted by Daeho Jeong 2 months, 3 weeks ago
From: Daeho Jeong <daehojeong@google.com>

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

Signed-off-by: Daeho Jeong <daehojeong@google.com>
---
 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
Re: [f2fs-dev] [PATCH] fsck.f2fs: remove redundant i_ext.len set to zero
Posted by Chao Yu 2 months, 2 weeks ago
On 2024/9/10 0:45, Daeho Jeong wrote:
> From: Daeho Jeong <daehojeong@google.com>
> 
> Removed a redundant code to set i_ext.len to zero.
> 
> Signed-off-by: Daeho Jeong <daehojeong@google.com>

Reviewed-by: Chao Yu <chao@kernel.org>

Thanks,