Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp3854052pxv; Mon, 19 Jul 2021 10:18:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzXGX34Jp7PPqbG7aMVK4P5QcSyPaXUxpiOYKYfZJQLpncBJ/wMm5pvTYPttsOi7zvQYgH0 X-Received: by 2002:a6b:8b0d:: with SMTP id n13mr18519653iod.169.1626715106821; Mon, 19 Jul 2021 10:18:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626715106; cv=none; d=google.com; s=arc-20160816; b=MuHCtlCjVon/7ouJHoiIk1WzJfEmHp01leQt/6yHsvxsslgIuSZXUsPVrHjmX1Ueug V1uBUyRHOGZmK22tJZpIABWybxN9sOsgs+Btxn1X5IbAZ4703oyrplt9K1UX/J5GAL1k b3v3jxVCAPmcuxi1yV6+D32edQka4fSQwZCQiKglNv/Hm31qDd8FjPJENSugzy2LPN30 okF9b/Mz/frgms2TteJCnEe7NNYGlE/HFnJKArDFBp7TFaRm4xUl8eIgGIrE6DUb5rZz 2fMPFSz0FDt/GQrU24jJe9UF8cwo3LXVRqcoDwG+1BNaIqTnBLyCwmbI3yb38LaDqKgQ JJ8g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=YbZXRtg7gR9SxCZz9JayxqOsaRq0suLNg2Ryr4FVKws=; b=cFG/CwGADra6/IQnAmSfBt+0bKqooaPm4QXkzN0P3eLRLLIdB897L7j6cNQSjDkaf8 qnPKgllMQwUzqRmXcYujXRS/MGVN4sHko6KzlnVncwe7ccBCtDGN7eWix/35iL3XMMYG OK5yvTpRH3+mDHx+YbPDRy6yJnfLD/lMfCbwClJ1nb2vO97SLP2Inhx7Zn8b0be8TwiU y3d7v/uhZj/lPqFB0ZaOW5M4gqhXt+4uuXkQ/i6dw2pA1+sV/VUtnlrqYsinLsLqVLWl Eh9YtNGx8jFLpyRnlrGleSHaaLw46oM1u24WBbXD6PI9nK+tOJOlGyHVn4RqbAcYWa7a Gueg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=LDgI8FxU; 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=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q11si19693002ilv.18.2021.07.19.10.18.14; Mon, 19 Jul 2021 10:18:26 -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=@linuxfoundation.org header.s=korg header.b=LDgI8FxU; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1354637AbhGSQfT (ORCPT + 99 others); Mon, 19 Jul 2021 12:35:19 -0400 Received: from mail.kernel.org ([198.145.29.99]:57792 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347832AbhGSPVv (ORCPT ); Mon, 19 Jul 2021 11:21:51 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 4D55F6142F; Mon, 19 Jul 2021 15:59:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1626710351; bh=jZikTFUTv0AzTXuWcBdCDyBsPChwXYD3vXY8IpLsFXc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=LDgI8FxUULV3tYCefavPx1RX7S2UJvuXYwQ5TO/rXOFfQJoj/vIZ6dkZnAgZ6psXV LBtkZB9HX1ja/MbznbC4BPTAg8RYQ89n09orxKtpQpcosWNErNKaB5mf9xcEkAxoje QzXSqVQIEOCkEGp3ja/qt0EJyHeo7KSIhCWkMObg= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Sahitya Tummala , Chao Yu , Jaegeuk Kim , Sasha Levin Subject: [PATCH 5.10 146/243] f2fs: atgc: fix to set default age threshold Date: Mon, 19 Jul 2021 16:52:55 +0200 Message-Id: <20210719144945.620669055@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210719144940.904087935@linuxfoundation.org> References: <20210719144940.904087935@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Chao Yu [ Upstream commit 89e53ff1651a61cf2abef9356e2f60d0086215be ] Default age threshold value is missed to set, fix it. Fixes: 093749e296e2 ("f2fs: support age threshold based garbage collection") Reported-by: Sahitya Tummala Signed-off-by: Chao Yu Signed-off-by: Jaegeuk Kim Signed-off-by: Sasha Levin --- fs/f2fs/gc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/fs/f2fs/gc.c b/fs/f2fs/gc.c index 9b38cef4d50f..e02affb5c0e7 100644 --- a/fs/f2fs/gc.c +++ b/fs/f2fs/gc.c @@ -1801,6 +1801,7 @@ static void init_atgc_management(struct f2fs_sb_info *sbi) am->candidate_ratio = DEF_GC_THREAD_CANDIDATE_RATIO; am->max_candidate_count = DEF_GC_THREAD_MAX_CANDIDATE_COUNT; am->age_weight = DEF_GC_THREAD_AGE_WEIGHT; + am->age_threshold = DEF_GC_THREAD_AGE_THRESHOLD; } void f2fs_build_gc_manager(struct f2fs_sb_info *sbi) -- 2.30.2