Received: by 2002:a05:6a10:c7c6:0:0:0:0 with SMTP id h6csp2058118pxy; Mon, 2 Aug 2021 18:08:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxeTfCCmqdXo9Nw92Gxa2HMyHdoVd3JraE+RH/j8+X7oM9gV4mTWFoIC0Eb8L43sactntE4 X-Received: by 2002:a05:6e02:550:: with SMTP id i16mr15157ils.207.1627952905419; Mon, 02 Aug 2021 18:08:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627952905; cv=none; d=google.com; s=arc-20160816; b=Yp2J0NjSVkWd0JMSjFLA8F1+nP7IU6JY6ip0lWvgHn5145MuRkCpoNinzeY9Thb1QO w1dy2anqwS3iuK+WIzThsGM8pgAmj0eJRs1EZ6tpc96WjlQwNOymjVKhTrqg+k1D6CuQ D2WetSwAbXfUFneIbsOL5aZ0lLrFSAMCyX4U2Xb/g8Nx5KdQnhvQwFproNJZKPHXLlIj ExKP3g8MOS9KV967a1rMyj/5mOOuzAqcPIGEcBOl1rrmJtGyjvTopjYs1lC4cJRsqtsu //si9tHvXyMNKivos8D7AfiiGhn9aulKtgttV7fqWgMzHu+iUopJN7JtZ52S2ncXvooY CdDA== 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=Z2MColt8gSaiEqdJX598fJwCeSZZOO6STq2Uc0TPLC8=; b=gvI4OCWdAFpHqFy2I7/JY17TEzodNM8h0VUkOqdiy/fOPSvPMbjbhBIstUOkslZQO/ 1nD4mSZZJVdfdD48mTFmwhUPv4D/0dp7YCuWk5PlJ9pH/FPPJ7q/sWQsGayZcA+pEqwt mgIsuFgsTYxWrLe++SejseBgOiFRv/32XJjOui0Uq1yQN6P+SuUBhT3HlU0tl3+wlOMB jgWhOwJkaSWa25dObIyppbft7Wbe6q+Q1yhBucSxNkKnoYoV21pVcuH4//uw05aBsa2a z/iNSL98IPMcxUPOsj6je7vD9r1+Vuu07QwOyJVGA/6WfKV2v3zYjj4ECXZXLpHjgZxb spCg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=C+guK3wo; 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 x12si13554556ilm.5.2021.08.02.18.08.13; Mon, 02 Aug 2021 18:08:25 -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=C+guK3wo; 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 S233455AbhHCBHd (ORCPT + 99 others); Mon, 2 Aug 2021 21:07:33 -0400 Received: from mail.kernel.org ([198.145.29.99]:60110 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232891AbhHCBHd (ORCPT ); Mon, 2 Aug 2021 21:07:33 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 3C5C460F9C; Tue, 3 Aug 2021 01:07:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1627952843; bh=gqoUY+WypcTVS9T5fCC9B2LZOiAtQUuaP7ib+nH0mqo=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=C+guK3wo3oQ8SdMdH5v1DypVz76yeAWsUm+LojLC9wD77dC6bdUdtXDmcSGeRBUng GT3fOO0LhUSIuyvnrgvQ+0IwI56D4Bb6Kc25LuN6rtOAux1xszIH3goURjP526+TKO lVmpGZANslmQdlbhyJJCNqNt7UnlYjliXkBAKXdnp5uUXYWxpt2fpzuLedQ/Q6Qpx9 gJkIDDfDhtQOXWJlxDXwt1ZDcgLm1dyOebMVBEpI9yXx+kZk6qmdEcnMGNdz1lHpFK ESfZDAyHJLOYR7PCB3Id/FmQZ+6haq7JfK4Ptn4iRdYCPbRCuUSPTm2CeVQExga0zx AAT2fy1cx1kiQ== Subject: Re: [RFC NO MERGE] f2fs: extent cache: support unaligned extent To: Jaegeuk Kim Cc: linux-f2fs-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org, Chao Yu References: <20210707015815.1978-1-chao@kernel.org> <51565c85-a475-bcb8-bbb2-e3125c5223a3@kernel.org> From: Chao Yu Message-ID: <3256dc39-2a82-cb60-038b-69e262c32d18@kernel.org> Date: Tue, 3 Aug 2021 09:07:22 +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/3 2:03, Jaegeuk Kim wrote: > On 08/01, Chao Yu wrote: >> On 2021/7/31 3:20, Jaegeuk Kim wrote: >>> On 07/07, Chao Yu wrote: >>>> Currently, it only works in readonly format f2fs image. >> >> There wouldn't be any race condition because unaligned extent only works >> for ro feature now? > > Isn't your patch proposing on writable partition? Please check description in patch message, now it was designed only for compression case w/ ro feature, let's check and support rw partition later. Thanks, > >> >>> Is there any race condition between the address in extent_cache and the one in >>> dnode? I feel that we could synchronize it by locking its dnode block. >> >> Thanks,