diff mbox series

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

Message ID 20240909164535.1926830-1-daeho43@gmail.com (mailing list archive)
State New
Headers show
Series [f2fs-dev] fsck.f2fs: remove redundant i_ext.len set to zero | expand

Commit Message

Daeho Jeong Sept. 9, 2024, 4:45 p.m. UTC
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(-)

Comments

Chao Yu Sept. 11, 2024, 1:55 a.m. UTC | #1
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,
diff mbox series

Patch

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);
 	}