Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1557752rwd; Tue, 16 May 2023 20:17:58 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7D31xKH0E4I1ZCf8jr6BBFnTvSqssvdDneufhZ6RE/RvweApt0TllurCHzMyKKT5bmzvSf X-Received: by 2002:a05:6a20:938e:b0:102:a593:a17c with SMTP id x14-20020a056a20938e00b00102a593a17cmr1311033pzh.0.1684293478386; Tue, 16 May 2023 20:17:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684293478; cv=none; d=google.com; s=arc-20160816; b=ugC0FsEC4MXQCxlK4DR1ewZeDb+PM8+MoJAlNrYIp/ovNorBvJra6iUFV6hHmTDPlD TcjpzFs6HtNcMVth7+ed/iYkb0ksbUEMWn8cLfNpdxGn1qb0KccmUwqlaSTB3yhpEEP+ eowSMovfWj/Q+uPvneWmAJeO4nfIJAZHkcCGNZxyvN+odSiJnaCXyTN6NfJQ6juFisja 7IuxNstTLqrc/DofaMcPB1pZXduOg8E0tGsRXhpuNRxtOC0zLLk1ZX4+nBr704EtVQm9 Xxuja+QZfRv+1I7s595/94XnY6nAXoeH9Ko4dWkb83zCcF7vQKe6CUNAtjZKff1gHx2S yhPA== 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=+UGL8REk3T2oLZSds1bwFk4w7dg+trb+BTfpGRQNXew=; b=f0j8HE1yFn9aW2OyF6R1dWe8Ab6NEW/c/sVJPpK3aybm6Yp/DdeGj+9BY2JVcDn5yX JAKaXYDly0OJ4ett7avMSNiGBb3YjhcIYTl0pcvSQLw/HlyeiMK2dWshKBnT5/38vTTi CaCCryKlux4j+JI3k7W9e3U77yxOFbVcKTQrrVcU9VZpEsO+dFPdeqyZqGvB9DRhVuLF qx0Xky8gvlfsLh7qtqtTJCa+LT7rpU07EcDu4KEZmsACfZTgVioGueOIJHd/o+g+4Q/d w/z6QWIUmrEqFN/H0zwXITSV72b+dxaX7sFQkhe0/jWRF4NKUH0lssTjuBIJJIoLoIOU MFug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=i8PH5HNX; 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 d9-20020a631d09000000b0053415b1caa8si6920994pgd.157.2023.05.16.20.17.46; Tue, 16 May 2023 20:17:58 -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=i8PH5HNX; 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 S232110AbjEQCkT (ORCPT + 99 others); Tue, 16 May 2023 22:40:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59044 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231432AbjEQCkS (ORCPT ); Tue, 16 May 2023 22:40:18 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6557B35A8 for ; Tue, 16 May 2023 19:40:17 -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 E4E8C60FD9 for ; Wed, 17 May 2023 02:40:16 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E2495C433EF; Wed, 17 May 2023 02:40:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1684291216; bh=NdrwmnejHdoL348J6WmccW3ZdlHY3rSkgi/6/8J/jcc=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=i8PH5HNXNqDJ4w+iqIxFtytlXJGS9XfvLYfHVXQG8mf6Xd4zUba616U2iUVpYnQK6 h+VN2FU0ztxn/omhVl8Scc1WImm6E4BLmszILp8I52pfG3nYGM+7JvUAQxxs5UtdsM jEfvZDvF3qxSB6Bph8nWIsXrVMHoDaUTKFMVIdB+3Gv0yS2jC38pDD2k1eGpdE+0zI 8WtNur9FAsMZAOKVtX3ItRsiIhvrJizJWhOows6raG2sli7QdfF7pEvyOj6qm7QmnB I39THNrhW6mUtcL9aVZUtzj3TostteHDfylp9WRgufK591ooBmADKBNgIb4A+5o4gK x0cj0tShqAMjg== Message-ID: Date: Wed, 17 May 2023 10:40:13 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [PATCH v1] f2fs: Fix over-estimating free section during FG GC Content-Language: en-US To: yonggil.song@samsung.com, "jaegeuk@kernel.org" , "linux-f2fs-devel@lists.sourceforge.net" , "linux-kernel@vger.kernel.org" Cc: Seokhwan Kim , Daejun Park , beomsu kim References: <20230512041610epcms2p506e7539079670524146ba6eeeb9dbd63@epcms2p5> From: Chao Yu In-Reply-To: <20230512041610epcms2p506e7539079670524146ba6eeeb9dbd63@epcms2p5> 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,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/5/12 12:16, Yonggil Song wrote: > There was a bug that finishing FG GC unconditionally because free sections > are over-estimated after checkpoint in FG GC. > This patch initializes sec_freed by every checkpoint in FG GC. > > Signed-off-by: Yonggil Song Reviewed-by: Chao Yu Thanks,