Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp573756rwb; Thu, 10 Nov 2022 04:57:41 -0800 (PST) X-Google-Smtp-Source: AMsMyM72Wg7MKXw3mnOmx1PsJaQ6YZkhPycT89LpiwKq2jmtG35f4lx3tjsYhqWyBwgRRQXFktu0 X-Received: by 2002:a17:90a:164f:b0:213:bda6:2873 with SMTP id x15-20020a17090a164f00b00213bda62873mr60772747pje.215.1668085061132; Thu, 10 Nov 2022 04:57:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668085061; cv=none; d=google.com; s=arc-20160816; b=qVlOCOpl//uYtzoqlqFwK4FZhpO8tuQ3Ya7N6SQo8uNqKJtJuF0pxikZ8bTyY5h0hb 4io/W7OovLf6nNoh0K4m15/CZWc6GX+9b/2bvgF+SiSzZr08JdDnDpOGnjhKQZ0aESaf I8EUCqB+dMRGDHfjRB1CE3GowfnMMc4KSv60qjZjyM929U7qheWc1H8iZGo0MGR3RNl3 HzTwxRfDPrjX0iMtnQzqYsqnpyV3tPOmu+ZyKSKv1VnoJlOQYgGkPSzZUvkt7jFoCYR0 mfXNWA/xCFGv73AQdI/NBqq1P207BfmUfihSpBTWcR9sfu1aRff9Ao4Qg9klDOCugKx+ 9EUA== 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 :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=Pj3rvrXKs8I7qj3cNSxYUUmAewhfAL62uzhH738PQWg=; b=T7WNY7UDP8x97Ug2AYV5VArc6SlL7NC6sUtZD2elD++Y67kIpCUxX8CWKq8u6+Myp+ Uw6GEI66wlbfr0v2y3D9wkdb96DX5Ovo3j2Cc8m+sn4ffZhjETv4yoDHKvcmvPteLhR0 Xkkdapop9XqM1FubcsonoQ+8IiZ51HldkofmC6bAGBPFCDGZdeifkXPk7DjtyXup52ad tGKWJ7Rq0CPDUGKIWCGysNr8DipEiQ/euKZngzO6uZFYYlZqNn+ZU5sQKv9KkErb+b9F dXYCCmgrDhuQTPOuuI4001fU45UDtQFIJqjOo89BcvlNrRTOPUa8wr9Ji/y17Hm2qqD6 2pTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="ah91qz/t"; 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 z16-20020aa78890000000b00557e99763d3si22351924pfe.93.2022.11.10.04.57.26; Thu, 10 Nov 2022 04:57:41 -0800 (PST) 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="ah91qz/t"; 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 S229674AbiKJM2C (ORCPT + 93 others); Thu, 10 Nov 2022 07:28:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43876 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229530AbiKJM2A (ORCPT ); Thu, 10 Nov 2022 07:28:00 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5CB71247 for ; Thu, 10 Nov 2022 04:28:00 -0800 (PST) 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 EE15F615D8 for ; Thu, 10 Nov 2022 12:27:59 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7A60EC433D6; Thu, 10 Nov 2022 12:27:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1668083279; bh=dJPsCX8eDjFVUPGpFaJpV7q3H2UfKOX6bWrgqDkxFRU=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=ah91qz/t7Pr9oogamLx9Z+Sz4m74YBlfTeqhAkiBhTlAHNysTFkNkgjmHYw7mNuIf MT26yqBMJ9BuvlUd1iCkNc2Rok726R16Ceoaq0fXNpeixgxp1iKvzUz/OtjcQVCRZX 28F64D7pDL/BGBNJMay3aLzFTMtA+Q+5SBgWYcqfAzAcZtRwLyIUGraYK7Xl9Ry+hG mjMIMGJHhDkeD01dD7RkoIL7ov9wOf/nvlLW9WqZN1fYW3MKSpWSVMZK5301dFBUDm TtxA+0NVe3C2cy3+pj0KesU08PESR47HL8t8GeVwxOw1kC72GjQIXfD69514KNrmua 30tmwoto6ia5A== Message-ID: <11eed25c-d72a-f3d5-2864-ad795bd32968@kernel.org> Date: Thu, 10 Nov 2022 20:27:57 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.4.1 Subject: Re: [f2fs-dev] [PATCH v6 1/2] f2fs: correct i_size change for atomic writes Content-Language: en-US To: Daeho Jeong , linux-kernel@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net, kernel-team@android.com Cc: Daeho Jeong References: <20221031192416.32917-1-daeho43@gmail.com> From: Chao Yu In-Reply-To: <20221031192416.32917-1-daeho43@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-7.1 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/11/1 3:24, Daeho Jeong wrote: > From: Daeho Jeong > > We need to make sure i_size doesn't change until atomic write commit is > successful and restore it when commit is failed. > > Signed-off-by: Daeho Jeong Reviewed-by: Chao Yu Thanks,