diff options
author | Brian Foster <bfoster@redhat.com> | 2017-08-09 03:21:53 +0200 |
---|---|---|
committer | Darrick J. Wong <darrick.wong@oracle.com> | 2017-08-22 18:22:24 +0200 |
commit | a4c9b34d6a17081005ec459b57b8effc08f4c731 (patch) | |
tree | c0b42c9514c4820149a8e1bb18906efaf47c84f7 /mm/memory_hotplug.c | |
parent | xfs: add log item pinning error injection tag (diff) | |
download | linux-a4c9b34d6a17081005ec459b57b8effc08f4c731.tar.xz linux-a4c9b34d6a17081005ec459b57b8effc08f4c731.zip |
xfs: handle -EFSCORRUPTED during head/tail verification
Torn write and tail overwrite detection both trigger only on
-EFSBADCRC errors. While this is the most likely failure scenario
for each condition, -EFSCORRUPTED is still possible in certain cases
depending on what ends up on disk when a torn write or partial tail
overwrite occurs. For example, an invalid log record h_len can lead
to an -EFSCORRUPTED error when running the log recovery CRC pass.
Therefore, update log head and tail verification to trigger the
associated head/tail fixups in the event of -EFSCORRUPTED errors
along with -EFSBADCRC. Also, -EFSCORRUPTED can currently be returned
from xlog_do_recovery_pass() before rhead_blk is initialized if the
first record encountered happens to be corrupted. This leads to an
incorrect 'first_bad' return value. Initialize rhead_blk earlier in
the function to address that problem as well.
Signed-off-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Diffstat (limited to 'mm/memory_hotplug.c')
0 files changed, 0 insertions, 0 deletions