Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp1084355rwb; Fri, 7 Oct 2022 07:58:30 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4wS6r0prjHqiEIUaHoI1lkOvHt7T9ttEU5yAk4ay09r+woDPV2AKWjYPgvBSt4wmzVT7v9 X-Received: by 2002:a17:907:3201:b0:741:94f2:aeaf with SMTP id xg1-20020a170907320100b0074194f2aeafmr4377647ejb.505.1665154710441; Fri, 07 Oct 2022 07:58:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665154710; cv=none; d=google.com; s=arc-20160816; b=e6Tnt2TNZjdKrwYVyjFsqC+ykrGhnVOm27d69lMgpImjvRQbe0QsuPkZTeT2ekyFph RJmp8KT6yOiB1WAkZECReksNazK4gZs5OnH1V2nbvgkiPZwGWPoit5afHxufK62HB5dW h6jWPLaknaMdAK1jyH92jdwRNY3rKOtfizbD3ZrX1+zEyDlLaVkKBOr8NEjeTIUEuVlp +v/nA3m+Ojq7FzMrBsyCattYyWYs4frlostd3xTbw2LJqT64am7NQhXdwQO+AScmClW2 J9F6tf0eGMLgijKcpuBwAoILZ7yGlCV20bxSwu+wh05By8BYDoQG4KRVLtJZQINHq9wl /QUg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=xC6Lg2k1ncH+UvtazPJuhsQR2uyhWJ9vyo3r1aGHr9Q=; b=KAkQwvsJrWVKHTytO/ttFlUCqaSa56bSF+0eCCCkdPwj49qHENwVR0wf9RU4BFlIQ1 IgbYBQeK15oA7giGqtsfrm0WH+1+M72RzbKg6ZMse6BIXtify+sOiolXLvsc4ztLT3SJ douYPCRvFaWanyMtNgRul0v1ILXLumlINHDyUpVeatRB8EFCR1ClfjjAY6VFz8JpS/AH aRYM/1N/H4gdD9DzU3sWE0WEwYx6a58l/c4W0IWUQOXckwCjWmmq9MOw1sll+pLKCJQm sgQ9I04ohPhIgLyjISsJz/KvrtepDijOJ+2yxuqGjZ9LyUvreWK34Xq8gGsYZ2Z+ki8z fT6w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=m7TJGIa8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ji12-20020a170907980c00b0078d5be8d9dcsi2186771ejc.344.2022.10.07.07.58.05; Fri, 07 Oct 2022 07:58:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=m7TJGIa8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S229673AbiJGOnB (ORCPT + 99 others); Fri, 7 Oct 2022 10:43:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34076 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229495AbiJGOm7 (ORCPT ); Fri, 7 Oct 2022 10:42:59 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9CB90FC1F2 for ; Fri, 7 Oct 2022 07:42:58 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 3ADC861D43 for ; Fri, 7 Oct 2022 14:42:58 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 92ED5C433C1; Fri, 7 Oct 2022 14:42:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1665153777; bh=LBsdgEgWGpm3BX3s8qMCaLUB5qE654Y2XMy0ZXH5+cM=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=m7TJGIa8lsAeUcDbWY0TlC6+PGoEMwf1fZOKXsuYT21bCZOi3Etx13yGYm4hEczqj VpfmYuQpYOJ3cw9ktDuQNTbN0dDM0yXCAqg/CNKv7FaFYRs4QxG5XLCF+8kdOQIOIs 4x/EPYsMHFOw/osPEOoiatG5/7n6WRUnWhfdZnen4XyRPCQ15zO9KMUSr197ZaNgxe xUHBQBDa8yYge54bQaXAe2NjJ9BfMQeg/LaMLtN0iNtvQ0bnbqMriSn2kgeZpkzd39 ah4u6Ejsy85omxpweY4cpU6altgpKgsQeY4cDKmVn/zUC6a1UvDja97aKlj61ro7EM PHyHZrvgxhBqA== Message-ID: Date: Fri, 7 Oct 2022 22:42:53 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.3.2 Subject: Re: [f2fs-dev] [PATCH v4 1/2] f2fs: correct i_size change for atomic writes To: Daeho Jeong Cc: linux-kernel@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net, kernel-team@android.com, Daeho Jeong References: <20221004171351.3678194-1-daeho43@gmail.com> <4d7f250d-19c0-acd0-dde4-752f95c5fc2a@kernel.org> Content-Language: en-US From: Chao Yu In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-9.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2022/10/7 22:22, Daeho Jeong wrote: >> >> Fine to me. >> >> But another question is, now it allows GC to migrate blocks belong >> to atomic files, so, during migration, it may update extent cache, >> once largest extent was updated, it will mark inode dirty, but after >> this patch, it may lose the extent change? thoughts? >> > > Oh, I missed that case. Maybe we could prevent updating the i_size of > atomic files in f2fs_update_inode() while allowing inode dirtying. Agreed. :) Thanks,