From nobody Sun Feb 8 16:12:38 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 05C681397 for ; Fri, 19 Dec 2025 04:05:10 +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=1766117113; cv=none; b=BZnOXJK2iL7KoHubLYNUry9cI9plxb6xlHQeGEm5fKA7V+6RFXRvpqCMndrU6hfh6rRVwtXVbsfZPTxRaVUgLeYXMRSzR6ciFiozZHgu56XHWAAZKgP7YXiUoqYbz0YQxRHRTtZWIBX2W6e5WKRB6EQogC+c1ECHR8pdUR4fAeA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766117113; c=relaxed/simple; bh=n+zVmjzZHMfPLz96y7cY7pr/4HlNXj34JmrqWO/gG6g=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=ZQFQt/yDDmSJn0dedmqK++5CS12b8xvVl0/SRV5NyvNsNprJzGtDYryfPhtMnN3yypCmAsUwWu6A0FsE7nf3cPvYAlCYmmRUDjAMzRXp4T1dIcNjZIxLULG9ZSG8dilkTreJQZJl89WqvnZa3SsfukONe7mEnyPsaQH8HjhFfJk= 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=NEzGQM3e; 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="NEzGQM3e" Received: from dlp.unisoc.com ([10.29.3.86]) by SHSQR01.spreadtrum.com with ESMTP id 5BJ43or8020659; Fri, 19 Dec 2025 12:03:50 +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 4dXYgk4Lylz2Lk7mr; Fri, 19 Dec 2025 11:59:14 +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, 19 Dec 2025 12:03:47 +0800 From: Zhiguo Niu To: , CC: , , , , , Subject: [PATCH v2] f2fs: fix to add gc count stat in f2fs_gc_range Date: Fri, 19 Dec 2025 12:03:11 +0800 Message-ID: <1766116991-2910-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 5BJ43or8020659 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=unisoc.com; s=default; t=1766117034; bh=aHFddfBXvB5cT8991YXc+6QU9Nmv6MRIEhtyJRGbuyg=; h=From:To:CC:Subject:Date; b=NEzGQM3ehlzh4e9p2UE+Uqr5QeT6SFcB0U/0vEh7oUb4FGrOmRFF2SOV8kRqr6xTb q67coOlk9z0yHvuoN66lZzqWQCiMXZ6EV1SVPSAXj3CSkrl56b53M/LAkoOfy9AEns ZYXaNpsl+BZ/0tKjRfEAGwl6Z+60kaYkl8aoVGghWknS002zNv6nmZnSZUnKLC9PH0 FPBZmeBjpAI0irrgy7ILNwbaWiDIfktSdjbnWSkvv38UEbSpR7YFqYUeDJZYhSfoOs /qL9RrTCfC3FTYZxR6MALN9nepD28WQW9oFN/Vb5ziYYrgWMxqQHlRbO/Lln/OrlTN hGcaXOWfhIkWw== 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: 2f0209f579d1 ("f2fs: separate f2fs_gc_range() to use GC for a range") Signed-off-by: Zhiguo Niu --- V2: add Cc and 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