summaryrefslogtreecommitdiff
path: root/mm/shrinker.c
diff options
context:
space:
mode:
authorYe Bin <yebin10@huawei.com>2024-06-20 15:24:05 +0800
committerTheodore Ts'o <tytso@mit.edu>2024-07-08 23:59:37 -0400
commit0bab8db4152c4a2185a1367db09cc402bdc62d5e (patch)
tree8b0ea550d83d9f49e6c9f0db4cfa57b477e62c3f /mm/shrinker.c
parent65121eff3e4c8c90f8126debf3c369228691c591 (diff)
jbd2: avoid mount failed when commit block is partial submitted
We encountered a problem that the file system could not be mounted in the power-off scenario. The analysis of the file system mirror shows that only part of the data is written to the last commit block. The valid data of the commit block is concentrated in the first sector. However, the data of the entire block is involved in the checksum calculation. For different hardware, the minimum atomic unit may be different. If the checksum of a committed block is incorrect, clear the data except the 'commit_header' and then calculate the checksum. If the checkusm is correct, it is considered that the block is partially committed, Then continue to replay journal. Signed-off-by: Ye Bin <yebin10@huawei.com> Reviewed-by: Jan Kara <jack@suse.cz> Link: https://patch.msgid.link/20240620072405.3533701-1-yebin@huaweicloud.com Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'mm/shrinker.c')
0 files changed, 0 insertions, 0 deletions