Received: by 2002:a05:6a10:c7c6:0:0:0:0 with SMTP id h6csp2068780pxy; Mon, 2 Aug 2021 18:30:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyHgvxm8FmFNwUz0rciuybRV48vMBmWV59XOemI05MleETsAN6yXVzgKcE1f6Sce3IWNeeT X-Received: by 2002:a05:6e02:2194:: with SMTP id j20mr456233ila.108.1627954240701; Mon, 02 Aug 2021 18:30:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627954240; cv=none; d=google.com; s=arc-20160816; b=dq8DDChViptO4wTLg9fk94eOluBWZKJ1Z7hF1v40YcM8MvWSjXrRJA4FHmolvH6A5c n4tI5gVU11CJh2mU3Ctz/Wi0uhyMeUeCpA7Y/IznNezP7IaEw/nXD1lcgH7yvIhn88AH 8fXZKfAS4MdVywZ+6X586znZJUB3BsGiIcWgp6BQVHk/nf59+zLaNhJzJ3SdqXRC+k2C 1L2nJvUdx95P1rRLMHNF3KYO/k07v0RAw8MTxcfHAj6Eb4pR3YgsME1XYXNzXYjRsqsc mxWiMv+PFJD5NmzRGpT5hq6+5mUKL999UAlwuoaEk4w3U96QLT5QaRxetLOfecqsm6Hb gWig== 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=Z8TLFJRF4vFbiKrZ/TkQ5tKb+Ht5RhoFlQlNsi5TSpU=; b=JUNjWufUpppFOwMJQNXJFddxwnBuS/N8EOmWowMMlHM0CbDGloQfgZ231QlX5by8j0 fh1s98zGuZekHfaiioegBPBQ+pZDgUxyS0i1Y0cHgySWt83vF5HSDwMZ+6BXAo+BnSoJ gfIOhKsFj2CIB9z30FG8B4BaeeY/5p6XOoASRNlwHBNlxfwtsMMQDxrMLFUUtalZCcqL iYiK7ys74bwhSthv4rBwTTQFVuJ2fFcKhajROPZz9d5KwAVyHlBxFavPjNklVwecdfPP OKci9DByZ6FrNmWxeGfXKgiZTSGgd6cyxUqAG9UIytKyQrMpjqIi3WNxE/IQpaebDjj5 VyFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=RS7LyTBI; 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 z4si13716937ioz.87.2021.08.02.18.30.26; Mon, 02 Aug 2021 18:30:40 -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=RS7LyTBI; 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 S233225AbhHCB3p (ORCPT + 99 others); Mon, 2 Aug 2021 21:29:45 -0400 Received: from mail.kernel.org ([198.145.29.99]:53650 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233208AbhHCB3o (ORCPT ); Mon, 2 Aug 2021 21:29:44 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id D8D3260FC4; Tue, 3 Aug 2021 01:29:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1627954174; bh=Z4zj/Wb3RgzHIm3MYrz04fRNx1w1p3GirfhhiOyAru8=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=RS7LyTBIo9E5HN0gl5zfHa23PZfGl3djZT2jwhNdhfl/Vi8B+LnIjRo8tHMwftVaP ZCEWxE2t91WRQNDsMgCByL8srq0+R18/SwJ23VOa0xYrKlzHbJNt18bVx3KreEuZg+ vQLUR4cK/Qf8jjD6dcoEUeNcnPPaxk8XWFXtZ+wn4Ria0XpyvHLbYGiAUAzNpLxXqg 5ccWWevOdr+CgpUIU47LfgEl9oJu9E+JiInlokFkNLCNmEVZjbCnGnZ6+sqXizxCtm orYQNIRdorsIxeKb5YZVuP3jXmWyKPCCkRnysVVk+SbYWo+osgLAIASXMoMjOOsVxl OTlOS9/so8Nuw== 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> <3256dc39-2a82-cb60-038b-69e262c32d18@kernel.org> From: Chao Yu Message-ID: Date: Tue, 3 Aug 2021 09:29:34 +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 9:25, Jaegeuk Kim wrote: > On 08/03, Chao Yu wrote: >> 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 > -- > what do you refer "it"? > >> compression case w/ ro feature, let's check and support rw partition later. > > Quite confused the patch description and code changes as well. You added some > change with this as well which is for RW. > > + if (is_inode_flag_set(dn->inode, FI_COMPRESSED_FILE) && > + !f2fs_sb_has_readonly(sbi)) { My bad, I've updated in my dev branch, but forgot to resend it...: https://git.kernel.org/pub/scm/linux/kernel/git/chao/linux.git/commit/?h=dev&id=c3a40f6a186ba064f95432b308173d0a8fe375dc Thanks, > >> >> 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,