[PATCH] btrfs: tree-checker: Replace root parameter with fs_info

2018-01-24 Thread Qu Wenruo
When inspecting the error message with real corruption, the "root=%llu" always shows "1" (root tree), instead of correct owner. The problem is that we are getting @root from page->mapping->host, which points the same btree inode, so we will always get the same root. This makes the root owner outp

Re: [PATCH] btrfs: tree-checker: Replace root parameter with fs_info

2018-01-26 Thread Josef Bacik
On Thu, Jan 25, 2018 at 02:56:18PM +0800, Qu Wenruo wrote: > When inspecting the error message with real corruption, the "root=%llu" > always shows "1" (root tree), instead of correct owner. > > The problem is that we are getting @root from page->mapping->host, which > points the same btree inode,

Re: [PATCH] btrfs: tree-checker: Replace root parameter with fs_info

2018-01-30 Thread David Sterba
On Fri, Jan 26, 2018 at 09:31:06AM -0500, Josef Bacik wrote: > On Thu, Jan 25, 2018 at 02:56:18PM +0800, Qu Wenruo wrote: > > When inspecting the error message with real corruption, the "root=%llu" > > always shows "1" (root tree), instead of correct owner. > > > > The problem is that we are getti