From nobody Sun Feb 8 09:07:40 2026 Received: from SHSQR01.spreadtrum.com (mx1.unisoc.com [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 D872423D2A1 for ; Wed, 17 Dec 2025 07:47:14 +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=1765957637; cv=none; b=nzhhcLQlFxifGbd+T1660sHyQUVaifyW/MScG86q7fN+CnF/4aTO5tL34pS/zisXSg1zOKHhyV/t5SEf67T5NKIYufzSi5GHQ9IT+HyG1RtPokvb+mH1UJs+RsWTD+a14/vmqPvu8vBPPL8x/Wxd6tF5noZOKBdavL25cLxrK1Y= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765957637; c=relaxed/simple; bh=02SowCpytaNXx/nKe6oSBZUeqSYDtv6HEEb6iGyBPBU=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=mWoAujV1BYRrqAZ/fY6TjOZQShMKoUUZbS3AoJR1EQUGc9+tHiV0uzxEhVIKzDO+7fb1JsoS/QIlnzgnojkJUQjJM0RIMrxRQGCf/RwaXp/6UZEXYM/wx5WIFtBesLpXWJfiSd3HW11NmCbZRjKRbUw1/N+rjVyXFA9cXfGIwP0= 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=o8d0yDTo; 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="o8d0yDTo" Received: from dlp.unisoc.com ([10.29.3.86]) by SHSQR01.spreadtrum.com with ESMTP id 5BH7kaBU073927; Wed, 17 Dec 2025 15:46:36 +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 4dWQjm4Yhnz2LGQlt; Wed, 17 Dec 2025 15:42:04 +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; Wed, 17 Dec 2025 15:46:34 +0800 From: Zhiguo Niu To: , CC: , , , , , Subject: [PATCH] f2fs: fix to add gc count stat in f2fs_gc_range Date: Wed, 17 Dec 2025 15:46:14 +0800 Message-ID: <1765957574-4386-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 5BH7kaBU073927 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=unisoc.com; s=default; t=1765957603; bh=P8gyT8E7UxTdv0OQvmjlOJdOlmZgOEdfmgVmUXt1ElU=; h=From:To:CC:Subject:Date; b=o8d0yDToa9xMdy5kBb48QgjUf6czWC+3PbehNoKgNE+dMI1ZfbbhpdgfN7x/b81wr N8ZNn7j2p0KhoujTG+9u5am5wLrSgX4U5AadfclB6o9cwqgWLwUZVDADdISf6vsizn pRY+J4ccjmNEXILs0UZIEaKNOQhYUKw74+NGKlBDKreGuxPHM0psf5Lcy1hnDpn0aV nRNMbBac4Oq6tFcF8JUfbg7kjbuCJ5mDke889LdHYBSWu4CJSthq28f3WoP5W6veG6 oaKM4Y1Nclouncs1fY9AvOu342m9HTTcUFge/rz5MKa6S8IBRSGZ8V2s0RiIx+fvyI Qa5WTfx3xO4aQ== Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" It missed the stat count in f2fs_gc_range. Signed-off-by: Zhiguo Niu --- 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