From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx0a-00082601.pphosted.com ([67.231.145.42]:52168 "EHLO mx0a-00082601.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750809AbcD1OEN (ORCPT ); Thu, 28 Apr 2016 10:04:13 -0400 Subject: Re: [PATCH RFC 01/16] btrfs-progs: fsck: Introduce function to check tree block backref in extent tree To: Qu Wenruo , References: <1461642543-4621-1-git-send-email-quwenruo@cn.fujitsu.com> <1461642543-4621-2-git-send-email-quwenruo@cn.fujitsu.com> CC: , Lu Fengqi From: Josef Bacik Message-ID: <6a41a204-117e-c438-9346-7acb8b9f1d1b@fb.com> Date: Thu, 28 Apr 2016 10:03:58 -0400 MIME-Version: 1.0 In-Reply-To: <1461642543-4621-2-git-send-email-quwenruo@cn.fujitsu.com> Content-Type: text/plain; charset="windows-1252"; format=flowed Sender: linux-btrfs-owner@vger.kernel.org List-ID: On 04/25/2016 11:48 PM, Qu Wenruo wrote: > From: Lu Fengqi > > Introduce function check_tree_block_ref() to check whether a tree block > has correct backref in extent tree. > > Unlike old extent tree check method, we only use search_slot() to search > reference, no extra structure will be allocated in heap to record what we > have checked. > > This method may cause a little more IO, but should work for super large > fs without triggering OOM. > > Signed-off-by: Lu Fengqi > Signed-off-by: Qu Wenruo Reviewed-by: Josef Bacik Thanks, Josef