This patch avoids wrong extent information modified by fixing block addresses.
Signed-off-by: Jaegeuk Kim <jaeg...@kernel.org> --- fsck/fsck.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fsck/fsck.c b/fsck/fsck.c index bbd4cab..70efce6 100644 --- a/fsck/fsck.c +++ b/fsck/fsck.c @@ -722,6 +722,8 @@ skip_blkcnt_fix: } } if (need_fix) { + /* drop extent information to avoid potential wrong access */ + node_blk->i.i_ext.len = 0; ret = dev_write_block(node_blk, ni->blk_addr); ASSERT(ret >= 0); } -- 2.1.1 ------------------------------------------------------------------------------ Don't Limit Your Business. Reach for the Cloud. GigeNET's Cloud Solutions provide you with the tools and support that you need to offload your IT needs and focus on growing your business. Configured For All Businesses. Start Your Cloud Today. https://www.gigenetcloud.com/ _______________________________________________ Linux-f2fs-devel mailing list Linux-f2fs-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel