Skip to content
Commit a468f0ef authored by Jaegeuk Kim's avatar Jaegeuk Kim
Browse files

f2fs: use crc and cp version to determine roll-forward recovery



Previously, we used cp_version only to detect recoverable dnodes.
In order to avoid same garbage cp_version, we needed to truncate the next
dnode during checkpoint, resulting in additional discard or data write.
If we can distinguish this by using crc in addition to cp_version, we can
remove this overhead.

There is backward compatibility concern where it changes node_footer layout.
So, this patch introduces a new checkpoint flag, CP_CRC_RECOVERY_FLAG, to
detect new layout. New layout will be activated only when this flag is set.

Signed-off-by: default avatarJaegeuk Kim <jaegeuk@kernel.org>
parent 5d4c0af4
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment