Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp1718363rwb; Thu, 29 Sep 2022 00:56:43 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6F4RXin/hroBT9zBW3Sq16jMHHk5osb/VMS1mKJY/alIHhRt7MCzoOYW07+gkxC8MfsdBk X-Received: by 2002:a05:6402:1941:b0:457:138:1e88 with SMTP id f1-20020a056402194100b0045701381e88mr2035194edz.394.1664438203583; Thu, 29 Sep 2022 00:56:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664438203; cv=none; d=google.com; s=arc-20160816; b=KV18K9RUf4kBHevDd+5S5x12RNNvUyw8JOlhkL+OPqVsxikIVI8of72ejc29Loothu 8mpyjXnf86dapHRBtXiOKmE8nT3XXln9TlvzRYg38rUdhNLkQL62v4fxsYDLNH+oFyp8 P8rAz/I48lD0DQxdDRUnv0JDiKNJbnaI3HFuqp/nKRtCf84lrIZ0onWTSUPXUwOQNSGZ kOTQlElGgBp4qKpQEaeA0J5YToWU3BsVp+ku5pmB3WTjI7mN2yytd0b1F+/6XUCq3T9h XmPk7xr0PgLq4+oJYUa+PVIheMvktPauWjZnYEvM5mOJCITPpnTTiGlo9XG69NYNFi0q QyTQ== 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=iYgbDhsmb5Hn95h/koDSj87xcRd2UTQnR0FB6TgsuAw=; b=rSWAWV8c98r3otarR6cN241ps75pdGQhU6lMtnUMesP2gnVYsnJuS0T3TpDTExMeMv URi5hDYRDvMyASuPuTwvSLxHsMelXMxsQ1uvammXuxH95dZj0yEN2M6ctF3ZJoZW/sNR A2ugjJzYs2kU0nHCg2YhcgG1JsUPJP3MP1JhekfAgBZJY+RrIZ1exBsxwzjfNM8nvcMR nAnMFFRHp8nfACpCLsHVIz43ncz8C8aFbC84weZIANlaKYPXEXkrA/fKAi06sqCVVMIH 4fAggK85vn8tIDek9yAryfqjTE3jABVjIxYhUnZEJIMqtf6Cg/J+xcbF00Q4bRp++2+5 A7mw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=U8AcfEsT; 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 ez7-20020a056402450700b00457463e2dfbsi7520819edb.512.2022.09.29.00.56.18; Thu, 29 Sep 2022 00:56:43 -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=U8AcfEsT; 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 S234870AbiI2G61 (ORCPT + 99 others); Thu, 29 Sep 2022 02:58:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47856 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234921AbiI2G6Z (ORCPT ); Thu, 29 Sep 2022 02:58:25 -0400 Received: from sin.source.kernel.org (sin.source.kernel.org [IPv6:2604:1380:40e1:4800::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8049712FF16 for ; Wed, 28 Sep 2022 23:58:21 -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 sin.source.kernel.org (Postfix) with ESMTPS id 761B5CE13CD for ; Thu, 29 Sep 2022 06:58:18 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id ACA7EC433D6; Thu, 29 Sep 2022 06:58:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1664434696; bh=48Yc5HgQmEVMfhl/617yDA7Og2HjBTpYuAiPgq/9KqU=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=U8AcfEsTChMEnTKrDEy2bTMj3LFvM9IGogneaYpz5w3drMArm/k9aUcBZ1cAixD8s IjW+Rd5UJfjIuB9k5gtUJuzy4tR8hoUAgfw7HJZtdpReBRyBZ45GNH3Rrl8gIYllfk YixmJbUMW1rKMTtO2gXtlJaV4x9sSlH6To+IVcqytZVOAdsxlbvQtQM3dO48mK3XDd GrW/S/XizkwWGdyPPVu/pduFOofRVYFXgKeJEGIgesLABscADWXCiwMmzdSKHszW0v +DF2QGE1GLuGyXhTNt2O6xyuWNgxNNVNQFRDLdKb+2ZW2ffuljZqA8FRUlXyHkmicz 6TGOdFz+hAMzg== Message-ID: Date: Thu, 29 Sep 2022 14:58:11 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.13.0 Subject: Re: [f2fs-dev] [PATCH 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: <20220919160644.2219088-1-daeho43@gmail.com> From: Chao Yu In-Reply-To: <20220919160644.2219088-1-daeho43@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-9.5 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/9/20 0:06, 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,