fsck.f2fs: drop extent_info to avoid potential wrong access

This patch avoids wrong extent information modified by fixing block addresses.

Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
This commit is contained in:
Jaegeuk Kim 2015-07-01 18:37:48 -07:00
parent 7ac070116b
commit ca1436eeef

View File

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