Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp257961pxt; Wed, 4 Aug 2021 22:02:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzzZApNqsoMxoDu7RCUCHOYp8qF7JK9GwiF6ELy4AT1BAW0/YS9G/HGB4TIy5sxR2vUxzor X-Received: by 2002:a92:c605:: with SMTP id p5mr116242ilm.209.1628139748184; Wed, 04 Aug 2021 22:02:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628139748; cv=none; d=google.com; s=arc-20160816; b=FybblCP1xSksrKg5noeyrxIZAuyysWRyvLKN+mwdt+xw/QWHk1z7AStpECgrAOgllq o2Wme/jqAZrD0O+FSpMhpbwdHsCkBV90rdwsjY88rC4/e2uYl/34ZoVph5FGPoMVvyIQ tfwZwGWAFf6EXEcjFf2KiICwUZQDD0OUIXMm0a+Sq78n1C7sF/auQhpwq7Gfr10jBgZ3 WyCUyY7iRs4ohNsnGmaq+2iZLnYAXoCAh5jqHR9DvOeFBt4zD1SQegNfmtLsmLUl9Il/ IP82QE1iO/flfnK0+QRCKrU+YCgBrbkZ1Wc3UizDCorHcBAAGUVffSTw9MQWmalDUXlH TeVg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=TNGvX8wQ8xlvkBYB7jF+/sPXDu3sV8Nt/1hONLud/XI=; b=DNmXZzcJ1UBJAp5BBPXoiWDu+D+uDrb54PdWvZpmda8e1Whx5QxBgv+S1ucI2mvmYe tHmRGACrnMsbHpZgewDXL7PouNTFHg7U9tQwn5A54uWc1aOaX7pfmM5fPg8mdy4zR3K4 iAwKZrf5yI6GNuCCP+SDQ4AAtAHYyWBu4hPE7KAv660D/DB60pDSRzxD2Eq3Cej6si0x JU/ISyn8QZxcypdjiRlBosQzWg7AWSMfC0wAi+7rWUECw05egJhto/IZNM4oVRyKvSxk Ai09/1t52me7NrfZ2XHCyPGIvFqi5Jgkm4NQ8cUA0XZaEk8TvlVo8+RWh9klQ807LF8O mb4g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=DmTDblh1; 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 g4si4779819jaj.83.2021.08.04.22.02.16; Wed, 04 Aug 2021 22:02:28 -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=DmTDblh1; 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 S238328AbhHECxs (ORCPT + 99 others); Wed, 4 Aug 2021 22:53:48 -0400 Received: from mail.kernel.org ([198.145.29.99]:35246 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229807AbhHECxr (ORCPT ); Wed, 4 Aug 2021 22:53:47 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 4B13C61037; Thu, 5 Aug 2021 02:53:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1628132014; bh=572pJp3ee6li9WZRwxOQIDTFDcCjD3QXQ/WZjb6zgeY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=DmTDblh1tN1+QpEn+UvacJuYWlWX2dRSB1HpSLCWKRADbTV2s8nU+MlZKus2a9l4O MZMTI2ZpJYFLionCOsOPEtRzI0zg5VXm5HhD1gtUuIpoLOn+8qyQNQftQNSHB5drpf gKX+0LkMljb+neOdNispQ6zOL2XfMHnDk94R/+83Zr1s+hWJ9ilNApaeNNuOx6iYqY aiTBgnr9dQ4PJWn6KFf67gNMcQErsXI+2+5mwtfcgYrBnTH13GZXGctPhmHABxSZEp iMabJW1UZyRE2wVX64u+eqynXW/WuchP4U0CnMXVMMHe4a5o7M11C68z5gScVyMDrJ Zz9qqHylVsgJw== Date: Wed, 4 Aug 2021 19:53:32 -0700 From: Jaegeuk Kim To: Chao Yu Cc: Chao Yu , linux-kernel@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net Subject: Re: [f2fs-dev] [RFC v3] f2fs: extent cache: support unaligned extent Message-ID: References: <20210804022348.1414543-1-chao@kernel.org> <0dad9863-4aa2-3ea3-fd97-457aa635ed66@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <0dad9863-4aa2-3ea3-fd97-457aa635ed66@kernel.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 > > > > On 08/04, Chao Yu wrote: > > > > + if (from_dnode) > > > > + goto skip_reading_dnode; > > Wrong condition here, thanks for fixing. > > Thanks,