Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp1380556pxb; Fri, 27 Aug 2021 07:40:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyBgzPfUgvDL7eOkymUC9cizB4cB8Z/nJrAC3VT6aOeaszoFcJvFJRBMlyPDXOwucqG1RJM X-Received: by 2002:a17:906:350d:: with SMTP id r13mr10517596eja.408.1630075210373; Fri, 27 Aug 2021 07:40:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630075210; cv=none; d=google.com; s=arc-20160816; b=GgAhpmnkoArn4T5RagBabUH+kTWk7GBhinTEEkOvdg97+2CKHpE+gukQ2fFhA2I9rg GFnFkyAka1Dq034dJvKbmHwfkP8kFSJp4WpXeXdnavW4XTxzX9RjKFJShaMIYuVLCHSz 4v+ZUHdtuRKwLOXLnnnS37E/va1wbV8HUtfV/0bKt9ftic+Tm1WT9PROnS9jaGW7yTuK fa+aajOpOKD+xFpjQr1ilLigKQm0EOB0eDtMTnOHLeFL6DWp58bPEDboDUQIZENFkVjd NkZxarJ3Db7qW96guAhWzEiSXdrsy5JwnYlXnFRNRiaxThlZGQaD2ZwGaphHvNsH414t jdhg== 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 :to:subject:dkim-signature; bh=g0v+9Ynu1o7/Jj8FR3TsbELtvV1ccH9t4wPnsv+y0+I=; b=XXsQt1guthUgjwFYd9gTInLUVVimPt/gbv6esNA2R9nyi0Z0FWseZf/OejTLZS6d8/ wo22bBap6FYvRtepOEO7sxWRdf3JXsVSwM9GTyF6p+dKFy9lRDBpraDkvoYBxiJkFkf4 4ZwkUpNOgUWOS2m7PtTppGvPzq0l8Uh+CzdULpOyM1X0n2S1jDBn9BN7AjGXW9d7opbm EHEL3DZCHrMIfX9NLm1Zn0nvanxgV9V+rBsM7ivXWRj75WN1JRPmN8VKqLHN6DqFJxUV 952iZz0XyCArjD5/yOOhJiYXq0L9oJ/tlok31tFf+4OHuGywYYcDrNo16v34KIf+qzs9 Qj9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=dYmTbIIQ; 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 aq9si3297039ejc.356.2021.08.27.07.39.35; Fri, 27 Aug 2021 07:40:10 -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=dYmTbIIQ; 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 S233680AbhH0Og7 (ORCPT + 99 others); Fri, 27 Aug 2021 10:36:59 -0400 Received: from mail.kernel.org ([198.145.29.99]:54434 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233282AbhH0Og6 (ORCPT ); Fri, 27 Aug 2021 10:36:58 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id D99B66056C; Fri, 27 Aug 2021 14:36:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1630074969; bh=z3xfp8u4+uJOQSeXp4ZKSEbEw8WZb1aXyFXJc6oIpG4=; h=Subject:To:References:From:Date:In-Reply-To:From; b=dYmTbIIQ3V/GB/pyfrw44fA+njyeg9YIDkkhKtbZOwMwmEyvY5i9gmTVNAnYzfp53 o1scZZUjlKKZgDNGTlV96Kk5JRMqkWZEqsQI4zDYrLHsCOTgKRmCqzikmYYk1ngMQT 2ObUaRu/jY8MqzTs9XCu6cOZ+GnP5UouxVjy7+RXW3cpuAPFsu0lYbgAWfLgZ1BI6P YzEnPV7ifnUUqFcPjeu57khSMpyqGYyiw4Qy1LH8p08XEOOUoINfMwW7cjuVSS/eoO 6dYj0IGPQ4jflCvy8FikX45XEnISMUHI1HcVCnKtE3CueNq7TsKEJbFVPIjAQTAQU4 4rGwtPj0o8CiQ== Subject: Re: [f2fs-dev] [PATCH v3] f2fs: don't ignore writing pages on fsync during checkpoint=disable To: Jaegeuk Kim , linux-kernel@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net References: <20210823170151.1434772-1-jaegeuk@kernel.org> From: Chao Yu Message-ID: Date: Fri, 27 Aug 2021 22:36:06 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.13.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/27 0:52, Jaegeuk Kim wrote: > From 64fe93a7f9c35c2b5a34cfa3cf84158852c201be Mon Sep 17 00:00:00 2001 > From: Jaegeuk Kim > Date: Thu, 19 Aug 2021 14:00:57 -0700 > Subject: [PATCH] f2fs: guarantee to write dirty data when enabling checkpoint > back > > We must flush all the dirty data when enabling checkpoint back. Let's guarantee > that first by adding a retry logic on sync_inodes_sb(). In addition to that, > this patch adds to flush data in fsync when checkpoint is disabled, which can > mitigate the sync_inodes_sb() failures in advance. > > Signed-off-by: Jaegeuk Kim Reviewed-by: Chao Yu Thanks,