Received: by 2002:a05:6358:53a8:b0:117:f937:c515 with SMTP id z40csp5599402rwe; Tue, 18 Apr 2023 08:53:33 -0700 (PDT) X-Google-Smtp-Source: AKy350aFf7Gu5exgR68jcIM/7TT5CQmqQuq4SdtmOlIR1Gos96AWS0iMmgcEd4r9q83NVryfsYNd X-Received: by 2002:a05:6a20:1455:b0:f0:827f:4aff with SMTP id a21-20020a056a20145500b000f0827f4affmr471069pzi.0.1681833213530; Tue, 18 Apr 2023 08:53:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681833213; cv=none; d=google.com; s=arc-20160816; b=y5yhzTJjblsL9LEbiAWZF0cFDGvN89+Wx0L9GWuTKu1pP0+ag3TM5aXG+qoa1/cihY 4Ism+2SzoDvOMBlnAi03wVEWz4B9hIebzqt7fBF4B/fizn32OERZchn6/Q6ivLRrIuL6 SKPze+aqZdG2Wi/N7O5Jmi5JzGCSdwFciihEi/EcEwKEeo57YQA2RldPr77y1U6itIT8 q8WEwMd/K5YgvSxum9bj2SRmgr5R2h5Z2/OVC+EKwnCwX7EIRtlV+hzdDlO7b8Y8EYw6 yAUWcE0sdw8bjg6z9ISTThBkOCsxYYTYuKkRRFKcCNtu+dVlCvkUUKfQue/fLRrAfLRk crZg== 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=u5RLL63zoNr1Ao3qJAlZuq/ukOLRacNO3JV45K3S11s=; b=ZndmQo5kMk9YQ2pQhJZ9OLXOHF/tyYweZIOmCoAzXFAUerMyOsaKfPuwL6u/HrkIO7 8wvwijTnyFvBp6vmkN69EsR1iOMECRQHMkKMNklofFi91teLFP6+Q2wuHDTSNeRFj6v2 CDl1rKdXFp4xWKGK2bJlCIwMWVjBHNPRWQOYQdya++U559AZ0lWokL3kxSc15NQ1D/bU TNTFsLnNiI84g47r3xAYscRK7Ok/3WKAYPgf2ZPSBE8y7iVGc0+/SwxRg+N0lxZxKcpX 7Lp9bKa5Vi7IykYcSYQteLzjU0/rkOw5wluhcT6a7WucFvBaaZ7k7w+YmBd9Ejgrzyan 9HHA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ALTkAZNE; 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 l7-20020a6542c7000000b00514477c4410si13789646pgp.426.2023.04.18.08.53.19; Tue, 18 Apr 2023 08:53:33 -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=ALTkAZNE; 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 S232469AbjDRPwX (ORCPT + 99 others); Tue, 18 Apr 2023 11:52:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37290 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232449AbjDRPwI (ORCPT ); Tue, 18 Apr 2023 11:52:08 -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 0DC6914F4B for ; Tue, 18 Apr 2023 08:51:37 -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 62C52635FB for ; Tue, 18 Apr 2023 15:51:29 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 236AEC433D2; Tue, 18 Apr 2023 15:51:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1681833088; bh=cjoNEFKJsnxGn9jI3vfiGlvd+QKFEzWm+NTDrFboZxo=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=ALTkAZNELep2uIbFTjqID1ZplV3k8EnH5AfFc3Yoy1V6FtNka2qHFsRcqxjamQL5f RuqAnvDIZwjTNa+NMwc609odY8AzsWUqf5sQG9XR/DmvqySSAJMauZ8ztp0drxebGq 7a+F9wi9gVrxB+G3oSe/7NcwJ0HxoD0CjDCRa5kBjbrZkMsCxEi4VFTWnL+5Xjl7yt 27JtiTtpwTcS55mPZg2uBzWEo5+CkrJpzW6r8oCvOSwPB/Fzve8v9isdui2JhiZLat H163dxTlUJFbZexf0CTnIiZBzXZLTJLcXR8TwMDyFNWb0wKZk2g11RLY4jrGf2Snkr z0hAiBmNFA5MQ== Message-ID: <2ad8e637-6914-2d3e-3cfa-5f0f7f5ccaea@kernel.org> Date: Tue, 18 Apr 2023 23:51:26 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Subject: Re: [f2fs-dev] [PATCH] f2fs: fix to trigger a checkpoint in the end of foreground garbage collection Content-Language: en-US To: Jaegeuk Kim Cc: linux-kernel@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net References: <20230324071028.336982-1-chao@kernel.org> <6c9abd05-297a-ea4f-fd5c-9f4d9fb488ab@kernel.org> From: Chao Yu In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-7.0 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_MED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 2023/4/14 3:25, Jaegeuk Kim wrote: > Fixed a xfstests failure. > > From 400c722c2117660b83190c88e5442d63fbbffe6e Mon Sep 17 00:00:00 2001 > From: Jaegeuk Kim > Date: Mon, 10 Apr 2023 14:48:50 -0700 > Subject: [PATCH] f2fs: refactor f2fs_gc to call checkpoint in urgent condition > > The major change is to call checkpoint, if there's not enough space while having > some prefree segments in FG_GC case. > > Signed-off-by: Jaegeuk Kim Reviewed-by: Chao Yu Thanks,