e2fsck: update j_tail_sequence after recovery
Hi,
Ping on this.
Quoted 11 lines
When journal is released,
s_sequenceis set toj_tail_sequence. But, currently, even if the recovery process is successfully completed, thej_tail_sequenceand, finally,s_sequenceare never changed. By this, when we repeat doing power-off the device suddenly and executing e2fsck without full scan before mount, thes_sequencenumber will never change and, in a very rare case, newly generated journal logs will be surprisingly grafted to the old journal logs. In this case, out-of-date metadata log can be replayed on the filesystem area and the filesystem can be crashed unintentionally by journal recovery process. Therefore, we need to updatej_tail_sequenceafter recovery process is successfully completed in e2fsck.