From: Chao Yu <chao@kernel.org>
To: Yangtao Li <frank.li@vivo.com>, jaegeuk@kernel.org
Cc: linux-f2fs-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] f2fs: make gc_idle sysfs node readable
Date: Tue, 25 Oct 2022 09:53:17 +0800 [thread overview]
Message-ID: <dfc051bb-71ca-035c-b945-ad298aa5e1ae@kernel.org> (raw)
In-Reply-To: <20221021082657.26559-1-frank.li@vivo.com>
On 2022/10/21 16:26, Yangtao Li wrote:
> Changed a way of showing values of them to use strings.
This change breaks forward compatibility of gc_idle interface.
Thanks,
>
> Signed-off-by: Yangtao Li <frank.li@vivo.com>
> ---
> fs/f2fs/sysfs.c | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/fs/f2fs/sysfs.c b/fs/f2fs/sysfs.c
> index b4476adea776..555849d4c744 100644
> --- a/fs/f2fs/sysfs.c
> +++ b/fs/f2fs/sysfs.c
> @@ -332,6 +332,10 @@ static ssize_t f2fs_sbi_show(struct f2fs_attr *a,
> return sysfs_emit(buf, "%u\n", sbi->compr_new_inode);
> #endif
>
> + if (!strcmp(a->attr.name, "gc_idle"))
> + return sysfs_emit(buf, "%s\n",
> + gc_mode_names[sbi->gc_mode]);
> +
> if (!strcmp(a->attr.name, "gc_urgent"))
> return sysfs_emit(buf, "%s\n",
> gc_mode_names[sbi->gc_mode]);
next prev parent reply other threads:[~2022-10-25 1:53 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-10-21 8:26 Yangtao Li
2022-10-25 1:53 ` Chao Yu [this message]
2022-10-25 2:33 ` [f2fs-dev] " Yangtao Li
2022-10-25 2:51 ` Chao Yu
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=dfc051bb-71ca-035c-b945-ad298aa5e1ae@kernel.org \
--to=chao@kernel.org \
--cc=frank.li@vivo.com \
--cc=jaegeuk@kernel.org \
--cc=linux-f2fs-devel@lists.sourceforge.net \
--cc=linux-kernel@vger.kernel.org \
/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
all inboxes | Powered by JetHome®