Files
linux/include
Jaegeuk Kim 65b9d5326d f2fs: use crc and cp version to determine roll-forward recovery
commit a468f0ef51 upstream.

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: Jaegeuk Kim <jaegeuk@kernel.org>
[bwh: Backported to 4.4:
 - Deleted code is slightly different
 - Adjust context]
Signed-off-by: Ben Hutchings <ben.hutchings@codethink.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-01-26 09:42:46 +01:00
..
2018-08-06 16:24:39 +02:00
2019-01-13 10:05:28 +01:00
2019-01-13 10:05:31 +01:00
2018-09-09 20:04:36 +02:00
2017-10-05 09:41:48 +02:00