Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp231385pxt; Wed, 4 Aug 2021 21:08:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxyzMe6v67yFlHseXxlNufodb+garUcMWAn3Sedul8atj+2G8uDghihjhGdPEXJJXvvfekP X-Received: by 2002:a05:6402:881:: with SMTP id e1mr3924362edy.53.1628136536686; Wed, 04 Aug 2021 21:08:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628136536; cv=none; d=google.com; s=arc-20160816; b=XDCgSkPvl3CPDo5QQMdECKV42v/PZ1HUtthKS1OjXMiJcyrAlI0Yw9lCQO92OBnYE/ tCD/54DfWIoyrzERjCSQyo5euGEACDMZf813HkcLqtfpkbam014dmQLeRPHIgJTlcDqS VYtjM1hjtyFo7EFtJvm1PneC1MqanKCcVSZqaeHAYwmaO6OsSAO438pTuPG+mooAdzN5 JqehzkVZO2fGhZYKZMXXlWbokPCwSXCsAJny2IGn/oz5598q5Kx9uUq5co7y7ico+xe0 et+HQ19o6nn3HUDF6ZMphd0Efl9OGLQtFgB+8/OexSdZ0bdDlJas/2k4EASgWWRyvHpG 4e5A== 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=zb9AHjOuco5j8HO3p81lly/TL8E5hqZzd6iGFCCFAfw=; b=BpcIEln1hm0cFDYerJ9fAeha5PjsANcu70oB7LdaH/XCeCW1bhWYKRK3TIwhVclCN2 1TxAoUfkyGHn9HM9M4KTY7W9406oV13YJkFaHo2XKaDtXR3HTHalTfQiF6wsP/aJKjq+ EU7ahBgqjzikoBwQHIRyYKEo564rbbuqR+zgne5umZWlnZ/pzIKvPcmkcHeYwls3RImG 4tuBR9oBdTfPoZM4xBFyxGdYYFwnPSbmgNe3EzlhCoP0h8PsWBCQvOn+TPeMGUzOxpR5 oq9R2WFVHbibXXO0hh2lTclnlYr7KIl2FF8d7oc+RyV3br++hWcEXCPGZIJMI2QbC49h IaYg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="Vn5s/oVc"; 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 cz3si3951431edb.579.2021.08.04.21.08.33; Wed, 04 Aug 2021 21:08:56 -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="Vn5s/oVc"; 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 S236069AbhHEAaD (ORCPT + 99 others); Wed, 4 Aug 2021 20:30:03 -0400 Received: from mail.kernel.org ([198.145.29.99]:37906 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229991AbhHEAaC (ORCPT ); Wed, 4 Aug 2021 20:30:02 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id DE4D7610FD; Thu, 5 Aug 2021 00:29:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1628123388; bh=fKieLesTCiXaeb8urF0Ymy+tmaf0uoqUENpfp0I62go=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=Vn5s/oVc4bdLiD2TOHDBnJ22Avzhv08uEdKUm50DR7qHK/EDLsSSNSy39IkNKM/XF KNHE01w6CuBc1oOktxPWGegJMb+8pxk117cVipqwomyhISSjn1ZjM3lLwt0Moe3nC4 ae1wLfe98IFvzSE4/v92+NuWnKEQ83PL9H4EupHvtedjY72NSYBtlRBkpa8mu+kLGw aGSYqPm/KGRvPtNyvPNKF3T7JSz9HdXp5HLocRPutOC+Cc8g6RF2C5SWqk9KkOcdKS 1uPTGhnpsm/YV3DJMSr+Au9nOB17PgrP08CK3oY4//mCOiEJNrxrzEczka7yVKhbsL Ev+48jc/QeSbg== 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> From: Chao Yu Message-ID: <0dad9863-4aa2-3ea3-fd97-457aa635ed66@kernel.org> Date: Thu, 5 Aug 2021 08:29:46 +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 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. >> On 08/04, Chao Yu wrote: >>> + if (from_dnode) >>> + goto skip_reading_dnode; Wrong condition here, thanks for fixing. Thanks,