From nobody Sun Feb 8 14:42:05 2026 Received: from SHSQR01.spreadtrum.com (unknown [222.66.158.135]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1A3BE15CD74 for ; Fri, 26 Dec 2025 02:57:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=222.66.158.135 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766717850; cv=none; b=Lz/yXSQi7Z5uVVNiXdgCinUiXif8cdUtMT3SqYB1kWhGMFgmJtUl1RElt5yVT4uTPaGyPVHEpK5KsJTnylRF6qCROvQF571bj6VPl5GdbEhfW4dR3MayndBpFwBRsIYNJ6gmXP0XaU2i3TqQYGsTHwHodiDb6sV32hpKXAHEbZE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766717850; c=relaxed/simple; bh=nN68AMxrK4XDoP97zAyUN4BqPWt3Cp2TUeLsc4/iktU=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=CWJK3PLx+3rpQYliuT4/dfXIApA0L4/YUGYS7SM6M3fc1+o/SeIsXYgMVAx7BVQ5v0jQJJfPAqisVga8/AfsoyjchMx0LHl28b44GYB7z2tVhKGas8mVm2IsnUWKJu8dZUr5XOrRwEXIPDX4A5vTTX4mZYNReXnTgkPHEsx+J4o= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=unisoc.com; spf=pass smtp.mailfrom=unisoc.com; dkim=pass (2048-bit key) header.d=unisoc.com header.i=@unisoc.com header.b=omxHw/BH; arc=none smtp.client-ip=222.66.158.135 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=unisoc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=unisoc.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=unisoc.com header.i=@unisoc.com header.b="omxHw/BH" Received: from dlp.unisoc.com ([10.29.3.86]) by SHSQR01.spreadtrum.com with ESMTP id 5BQ2uPDh094311; Fri, 26 Dec 2025 10:56:25 +0800 (+08) (envelope-from Zhiguo.Niu@unisoc.com) Received: from SHDLP.spreadtrum.com (BJMBX02.spreadtrum.com [10.0.64.8]) by dlp.unisoc.com (SkyGuard) with ESMTPS id 4dcqrS0PyPz2L8STY; Fri, 26 Dec 2025 10:51:36 +0800 (CST) Received: from bj08434pcu.spreadtrum.com (10.0.73.87) by BJMBX02.spreadtrum.com (10.0.64.8) with Microsoft SMTP Server (TLS) id 15.0.1497.48; Fri, 26 Dec 2025 10:56:23 +0800 From: Zhiguo Niu To: , CC: , , , , , Subject: [PATCH v3] f2fs: fix to add gc count stat in f2fs_gc_range Date: Fri, 26 Dec 2025 10:56:04 +0800 Message-ID: <1766717764-19956-1-git-send-email-zhiguo.niu@unisoc.com> X-Mailer: git-send-email 1.9.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-ClientProxiedBy: SHCAS03.spreadtrum.com (10.0.1.207) To BJMBX02.spreadtrum.com (10.0.64.8) X-MAIL: SHSQR01.spreadtrum.com 5BQ2uPDh094311 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=unisoc.com; s=default; t=1766717804; bh=chKbGPAyZ9XyJLDeC4r4pQetc9bDx5pvgVysyU1wI+Q=; h=From:To:CC:Subject:Date; b=omxHw/BHAj1gPQEX5+EKWP8jTiopJ5RYlhIgZWzxFW5+j+zneHqZGmKZOtqc2OWBl njq1NPWPjFhEHInrQyZVhok1nK0rfhxzecBhyysHDhrmidqYSAgK8QU7t9KC/+cJP9 F3JCEHijCyINp49YvAQiOBWlCAr5FRE64kNNKCG1sOn/Q1WucGtnd7W0c4k/WuzCgb v0vdCMY1RzyKSNIdR0CZylowBVjORSWf27Jwu7VzPLFUArwlAfdq9o/DfpxVChW0tb ihujBQWA4uLe0B2yYk2OOsci72mfXSkDtOALLBcGB5rLsgJ5Pla6ln2rbb02RbhL+M YQdGOAj030sVw== Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" It missed the stat count in f2fs_gc_range. Cc: stable@kernel.org Fixes: 9bf1dcbdfdc8 ("f2fs: fix to account gc stats correctly") Signed-off-by: Zhiguo Niu Reviewed-by: Chao Yu --- V3: correct Fixes tags --- fs/f2fs/gc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/fs/f2fs/gc.c b/fs/f2fs/gc.c index 6afd57f..58b291d 100644 --- a/fs/f2fs/gc.c +++ b/fs/f2fs/gc.c @@ -2096,6 +2096,7 @@ int f2fs_gc_range(struct f2fs_sb_info *sbi, if (unlikely(f2fs_cp_error(sbi))) return -EIO; =20 + stat_inc_gc_call_count(sbi, FOREGROUND); for (segno =3D start_seg; segno <=3D end_seg; segno +=3D SEGS_PER_SEC(sbi= )) { struct gc_inode_list gc_list =3D { .ilist =3D LIST_HEAD_INIT(gc_list.ilist), --=20 1.9.1