Received: by 2002:a05:6a10:c7c6:0:0:0:0 with SMTP id h6csp2067437pxy; Mon, 2 Aug 2021 18:27:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxTJKxtHpAjzMDEGEvkCiPdftFaGEBWOpIjJtUuN+Gdw9V0V2BYM24acabePYAbrxIPIWW7 X-Received: by 2002:a17:906:2817:: with SMTP id r23mr17801540ejc.285.1627954064364; Mon, 02 Aug 2021 18:27:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627954064; cv=none; d=google.com; s=arc-20160816; b=xRIqWg1vXSPUIbI+DmjGB8rsjTw2Iywe0tDxskW0TI+gfL+n6tANkuwiZXesEQUkpZ J7hox5Xv40v7EF0tcqDWf1ftl3dbG+lyeS4rEGnbc3i63J5S53qO7aZ18CSjzqUAP1Ab owG8JDaLqXRrvDkZdvB0Zh1YmKINKRxbfdx0mp9zu1tNQEw6eN51pO2nYz//wLWgegHI hQfcaP5FXfOKJuLZ73Yt0HmLq9hDas5r6mfaFiYZ+9jOKksQX2/6vn+Vii8CRSTyMkSa S2MYJuRf8jwufULdOZizUJxuow3h7lFTbyoAPiYZvHTHAQFzDsgmKgOqG1sxhQfB+xT5 VAPQ== 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=w5VTUvIU2QSLvLVurqmNxMyRnox+U+YUo9mAt5vJ/hw=; b=eLBpdCNt5/Q4qiAeyF2ZulstJWufptJM7rklCAbE0bdXicDLUXEhZg+KgYxizTr84z UCLMGqvqi8pkoIelNOIVnGuxrAJrYBI6u+8mL3EQj6nD2tA4WfMd3YvAii2gSRJ7dCu7 l2xI2DSfX2GBCcS+SQkWGEmV5XebjxEdI08qri/ODxSCv7mCvN7gvnuHQ0bSO6/1kGBx fEX3pUm0wsnD+Ku8C+xvpOQuwWbhjURSEVm2zIIj/JB/B3BSOAHDc9nlUjSi5xwaNrS3 zx/C7wvYBNpLljimlfZMMHFVM3jHd2qCbztGpVbdCOi2AY6hwVfw3Zol+kBOaG6fvuy2 ELRA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=YOF1SBM0; 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 w5si13130584edv.200.2021.08.02.18.27.19; Mon, 02 Aug 2021 18:27:44 -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=YOF1SBM0; 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 S233491AbhHCBZV (ORCPT + 99 others); Mon, 2 Aug 2021 21:25:21 -0400 Received: from mail.kernel.org ([198.145.29.99]:50192 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233073AbhHCBZU (ORCPT ); Mon, 2 Aug 2021 21:25:20 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 4A57160FC4; Tue, 3 Aug 2021 01:25:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1627953910; bh=DJFbQz8pBMO15mtnbbjzTE0d/buN7m/N36mMycitwDQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=YOF1SBM0NbV/Iyx/47TT4L7doisVwJuR0LGj5z+3SoKIsUrrfI+PiiOIuvri060sh oI75PECkeugm7ZVVhaX+PU0I1Qub4uXQsxMcNCPr4dTIJqEZD45RMotL0giSjUoCEs 0zmUtRUC9QatSCfSNyEIyIsrcMqxmbCF774cwVscWl64adimK7IL7ZPNI8QKS6LoVC paqX9vFz7Qa9FBsW0bFJtN6YJbAtJitXTDCxI8y1sM0Cnh2Q4qq6NPaI+guQg6Wc2A mKPqX1emEYuGZJusLy8lyiGMdFgTLFaJpOYhqYdOmzfhO4pDUumchgLkyqzrb1vTXC a0uXP7n+9Vv8g== Date: Mon, 2 Aug 2021 18:25:08 -0700 From: Jaegeuk Kim To: Chao Yu Cc: linux-f2fs-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org, Chao Yu Subject: Re: [RFC NO MERGE] f2fs: extent cache: support unaligned extent Message-ID: References: <20210707015815.1978-1-chao@kernel.org> <51565c85-a475-bcb8-bbb2-e3125c5223a3@kernel.org> <3256dc39-2a82-cb60-038b-69e262c32d18@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3256dc39-2a82-cb60-038b-69e262c32d18@kernel.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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)) { > > 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,