RE: [PATCH 3/4] btrfs-progs: check/original: Avoid infinite loop when failed to repair inode

2018-07-05 Thread Gu, Jinxiang
> -Original Message- > From: linux-btrfs-ow...@vger.kernel.org > [mailto:linux-btrfs-ow...@vger.kernel.org] On Behalf Of Qu Wenruo > Sent: Thursday, July 05, 2018 3:38 PM > To: linux-btrfs@vger.kernel.org > Subject: [PATCH 3/4] btrfs-progs: check/original: Avoid

[PATCH 3/4] btrfs-progs: check/original: Avoid infinite loop when failed to repair inode

2018-07-05 Thread Qu Wenruo
Exposed by fuzz-tests/003-multi-check-unmounted/ on fuzzed image bko-161811.raw.xz. It's caused by the fact when check_fs_roots() finds tree root is modified, it re-search tree root by goto again: tag. However again: tag will also reset root objectid to 0. If we failed to repair one fs root but