From: Chao Yu <chao@kernel.org>
To: Zhiguo Niu <zhiguo.niu@unisoc.com>, jaegeuk@kernel.org
Cc: chao@kernel.org, linux-f2fs-devel@lists.sourceforge.net,
linux-kernel@vger.kernel.org, niuzhiguo84@gmail.com,
ke.wang@unisoc.com, Hao_hao.Wang@unisoc.com
Subject: Re: [PATCH v2] f2fs: fix to add gc count stat in f2fs_gc_range
Date: Fri, 26 Dec 2025 09:44:01 +0800 [thread overview]
Message-ID: <e004abda-4aec-46bf-8ea7-02962538bcd8@kernel.org> (raw)
In-Reply-To: <1766116991-2910-1-git-send-email-zhiguo.niu@unisoc.com>
On 12/19/2025 12:03 PM, Zhiguo Niu wrote:
> 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")
Fixes: 9bf1dcbdfdc88 ("f2fs: fix to account gc stats correctly") ?
> Signed-off-by: Zhiguo Niu <zhiguo.niu@unisoc.com>
> ---
> 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;
>
> + stat_inc_gc_call_count(sbi, FOREGROUND);
> for (segno = start_seg; segno <= end_seg; segno += SEGS_PER_SEC(sbi)) {
> struct gc_inode_list gc_list = {
> .ilist = LIST_HEAD_INIT(gc_list.ilist),
prev parent reply other threads:[~2025-12-26 1:43 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-12-19 4:03 [PATCH v2] f2fs: fix to add gc count stat in f2fs_gc_range Zhiguo Niu
2025-12-26 1:44 ` Chao Yu [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=e004abda-4aec-46bf-8ea7-02962538bcd8@kernel.org \
--to=chao@kernel.org \
--cc=Hao_hao.Wang@unisoc.com \
--cc=jaegeuk@kernel.org \
--cc=ke.wang@unisoc.com \
--cc=linux-f2fs-devel@lists.sourceforge.net \
--cc=linux-kernel@vger.kernel.org \
--cc=niuzhiguo84@gmail.com \
--cc=zhiguo.niu@unisoc.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox