summaryrefslogtreecommitdiff
path: root/fs/btrfs/delayed-inode.c
diff options
context:
space:
mode:
authorQu Wenruo <wqu@suse.com>2021-07-19 08:43:04 +0300
committerDavid Sterba <dsterba@suse.com>2021-08-23 14:19:00 +0300
commit2b29726c473b3f7d1b8f22d138ed12b2776bb5d2 (patch)
tree000289b12c87a9c62aa8beadb1c93838e039b942 /fs/btrfs/delayed-inode.c
parent6534c0c99dddafc47bd4152949751ccd6a5681fc (diff)
downloadlinux-2b29726c473b3f7d1b8f22d138ed12b2776bb5d2.tar.xz
btrfs: rescue: allow ibadroots to skip bad extent tree when reading block group items
When extent tree gets corrupted, normally it's not extent tree root, but one toasted tree leaf/node. In that case, rescue=ibadroots mount option won't help as it can only handle the extent tree root corruption. This patch will enhance the behavior by: - Allow fill_dummy_bgs() to ignore -EEXIST error This means we may have some block group items read from disk, but then hit some error halfway. - Fallback to fill_dummy_bgs() if any error gets hit in btrfs_read_block_groups() Of course, this still needs rescue=ibadroots mount option. With that, rescue=ibadroots can handle extent tree corruption more gracefully and allow a better recover chance. Reported-by: Zhenyu Wu <wuzy001@gmail.com> Link: https://www.spinics.net/lists/linux-btrfs/msg114424.html Reviewed-by: Su Yue <l@damenly.su> Reviewed-by: Anand Jain <anand.jain@oracle.com> Signed-off-by: Qu Wenruo <wqu@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/delayed-inode.c')
0 files changed, 0 insertions, 0 deletions