btrfs scrub: add fixup code for errors on nodatasum files
authorJan Schmidt <list.btrfs@jan-o-sch.net>
Mon, 13 Jun 2011 18:04:15 +0000 (20:04 +0200)
committerJan Schmidt <list.btrfs@jan-o-sch.net>
Thu, 29 Sep 2011 10:54:28 +0000 (12:54 +0200)
commit0ef8e45158f97dde4801b535e25f70f7caf01a27
treed1c29055e475402613d529738225df79d8789d20
parente12fa9cd390f8e93a9144bd99bd6f6ed316fbc1e
btrfs scrub: add fixup code for errors on nodatasum files

This removes a FIXME comment and introduces the first part of nodatasum
fixup: It gets the corresponding inode for a logical address and triggers a
regular readpage for the corrupted sector.

Once we have on-the-fly error correction our error will be automatically
corrected. The correction code is expected to clear the newly introduced
EXTENT_DAMAGED flag, making scrub report that error as "corrected" instead
of "uncorrectable" eventually.

Signed-off-by: Jan Schmidt <list.btrfs@jan-o-sch.net>
fs/btrfs/extent_io.h
fs/btrfs/scrub.c