Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp261864pxt; Wed, 4 Aug 2021 22:09:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwiQXJX4Py6VZQmgPy1LZG2z/aafUVkUB9p76++d3KgQeYzVtPxUxjT5BZz5mQxdFKPXqQZ X-Received: by 2002:a17:906:1ccf:: with SMTP id i15mr2986273ejh.120.1628140160786; Wed, 04 Aug 2021 22:09:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628140160; cv=none; d=google.com; s=arc-20160816; b=C1GBa6etBYAQpV+8XrLSWV0Gt0GnXATy2+ekM6IDfYq8bxkrN6+NkUm/Sy0Vky9aoM I5ng6jhng2Brvk+4eHNEnoBkxJ6OK/UAhaj0aST+p3tt8OonmV4pwUWb302JaPqCOjB/ FW5aLcl86fdY19u08ahebKhSt40ykXbsmp2Tza3IjLpbkqszrEJtMk+oN1NoEmBajlb3 i1mv43kV1E+TfaE2FDuOyVX7rCBSMOtA5F/euS2Voc6IkyAfT/QDHwbAZHDZHN1n8TYs hOwHw34T+yQbQQYUpeWiQHLlmN3zcL8KWLXbZOYdzcD+H1hfGiysyVstmSmMU7YRkRqf iWgg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=SXMBZYKFqlIx4Lvs95YrNKM2sRuEQgPXSm9odpdXikM=; b=S5d5Di8fwwryTODuLwWngiJVxdG/mMMoxQZMROW0sySQbHmq+E6Dod3qJHiihpt0Ei utPvAetPxPonQmermKL5BW6dudxrgl+8fBz9pZLpzaAdaRxpInagIe5NXpLS+KvN5FLW 7yFsxhz+O2kDgrTji1OShNCtltm7EFOslyx/blRpmh0mgyxMZP597ptMf1V5gyfhUyve Kmj8tsxNADkLppsXwxC6j9+fI0y+lWpVLTdPbwkMrg1mZyy5gOSUjWG1YPOyl5uYwkzl N3tmXlF9E7Mic8Q+aA4o3HiQy/mFrZp9OIFklRkM2yDkY7o5Zk1k1UFD2meDlSiiKD37 gYlQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Cvv2hzAV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id kl18si5127243ejc.160.2021.08.04.22.08.56; Wed, 04 Aug 2021 22:09:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Cvv2hzAV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233487AbhHEDEi (ORCPT + 99 others); Wed, 4 Aug 2021 23:04:38 -0400 Received: from mail.kernel.org ([198.145.29.99]:39078 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232011AbhHEDEi (ORCPT ); Wed, 4 Aug 2021 23:04:38 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id AD0D661004; Thu, 5 Aug 2021 03:04:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1628132664; bh=DoFtBqW8UB6ruKlkRSAEkUmYvCdD/NWqyxtofjx/IEo=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=Cvv2hzAVc/Y0Ko9wOqWwQ6eDKKp8phmjSGUKkGAUixj6TLKLpEbP/5Xou52GPQ52v 4OsGSN8N0tCQ2O7TpNpgOi998eUE0In9YgHtsMMSir0V8m8f/AAsPReP3ko5XI9rYN Y8kuw6pFcUknud+XlcEcUBiWfOBwWZ37i5YL2FOfboPgLnb62DsH3eeNzWQ3i3g6gP 94XL/XW94+p13ZFM0n8f0mUcqZ49qYODEqJpAF/SXnuaIZyOhvM2XWyYKF/vInrUJP tTLPyGcOzCOWGozvvnhEwJqC6DvqOTxYYAJfGc4jY8hAP0u+GeBeVCJoWHypOoynWa v5gkfyyrZ3Sug== Subject: Re: [f2fs-dev] [RFC v3] f2fs: extent cache: support unaligned extent To: Jaegeuk Kim Cc: Chao Yu , linux-kernel@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net References: <20210804022348.1414543-1-chao@kernel.org> <0dad9863-4aa2-3ea3-fd97-457aa635ed66@kernel.org> From: Chao Yu Message-ID: <62eb8902-90fa-4b1a-55ce-a178643baf90@kernel.org> Date: Thu, 5 Aug 2021 11:04:21 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.12.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2021/8/5 10:53, Jaegeuk Kim wrote: > On 08/05, Chao Yu wrote: >> Jaegeuk, >> >> On 2021/8/5 7:45, Jaegeuk Kim wrote: >>> Chao, >>> >>> How about this? >>> https://github.com/jaegeuk/f2fs/commit/d6bbe121bc24dfabfedc07ba7cb6e921fb70ece0 >> >> Looks more clean, thanks, >> >>> >>> I'm digging one bug in __insert_extent_tree w/ the patch tho. >> >> Shouldn't we initialize @ei in f2fs_update_extent_tree_range(), otherwise, >> __try_merge_extent_node(&ei) -> __is_extent_mergeable() will do the check >> w/ uninitialized c_len of @ei. > > Fixed some bugs, but still getting another data corruption. > > https://github.com/jaegeuk/f2fs/commit/c5d97919c55b467392407b60c1a7b1e3e81721ff Let me rebase to your code, and do some tests. Thanks > >> >>>> On 08/04, Chao Yu wrote: >>>>> + if (from_dnode) >>>>> + goto skip_reading_dnode; >> >> Wrong condition here, thanks for fixing. >> >> Thanks,