From: Steven Rostedt <rostedt@goodmis.org>
To: Pengpeng Hou <hppiscas@163.com>
Cc: Kees Cook <kees@kernel.org>, David Hildenbrand <david@kernel.org>,
Ingo Molnar <mingo@redhat.com>,
Peter Zijlstra <peterz@infradead.org>,
Juri Lelli <juri.lelli@redhat.com>,
Vincent Guittot <vincent.guittot@linaro.org>,
"Liam R. Howlett" <liam@infradead.org>,
Vlastimil Babka <vbabka@kernel.org>,
Mike Rapoport <rppt@kernel.org>, Michal Hocko <mhocko@suse.com>,
Dietmar Eggemann <dietmar.eggemann@arm.com>,
Ben Segall <bsegall@google.com>, Mel Gorman <mgorman@suse.de>,
Valentin Schneider <vschneid@redhat.com>,
K Prateek Nayak <kprateek.nayak@amd.com>,
linux-mm@kvack.org, linux-kernel@vger.kernel.org,
Coly Li <colyli@fygo.io>,
Kent Overstreet <kent.overstreet@linux.dev>,
linux-bcache@vger.kernel.org
Subject: Re: [PATCH] fork: use IS_ENABLED(CONFIG_BCACHE) when initializing sequential_io
Date: Fri, 4 Dec 2026 10:02:45 -0500 [thread overview]
Message-ID: <20261204100245.32b842cb@gandalf.local.home> (raw)
In-Reply-To: <179635128328.74470.8992894868872270442@163.com>
On Fri, 4 Dec 2026 10:28:03 +0800
Pengpeng Hou <hppiscas@163.com> wrote:
> diff --git a/kernel/fork.c b/kernel/fork.c
> index d55a7d21a8fb23b908466b0024aab3f917a6eb7b..cefb6e97b83a4bd9b2f5c94c46e31b5b57d5cebc 100644
> --- a/kernel/fork.c
> +++ b/kernel/fork.c
> @@ -2285,7 +2285,7 @@ __latent_entropy struct task_struct *copy_process(
> p->blocked_on = NULL; /* not blocked yet */
> p->blocked_donor = NULL; /* nobody is boosting p yet */
>
> -#ifdef CONFIG_BCACHE
> +#if IS_ENABLED(CONFIG_BCACHE)
I would feel more comfortable with using the same line that is in sched.h
here. Either change sched.h to be IS_ENABLED() or use what's in sched.h.
> p->sequential_io = 0;
> p->sequential_io_avg = 0;
> #endif
>
> base-commit: d06ce6f1eb5eeffd4ebcfde345dc34a98131d106
In sched.h we have:
#if defined(CONFIG_BCACHE) || defined(CONFIG_BCACHE_MODULE)
unsigned int sequential_io;
unsigned int sequential_io_avg;
#endif
-- Steve
prev parent reply other threads:[~2026-12-04 15:02 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-04 2:28 Pengpeng Hou
2026-12-04 2:53 ` Liam R. Howlett
2026-12-04 4:46 ` Coly Li
2026-12-04 7:42 ` Bradley Morgan
2026-12-04 15:02 ` Steven Rostedt [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=20261204100245.32b842cb@gandalf.local.home \
--to=rostedt@goodmis.org \
--cc=bsegall@google.com \
--cc=colyli@fygo.io \
--cc=david@kernel.org \
--cc=dietmar.eggemann@arm.com \
--cc=hppiscas@163.com \
--cc=juri.lelli@redhat.com \
--cc=kees@kernel.org \
--cc=kent.overstreet@linux.dev \
--cc=kprateek.nayak@amd.com \
--cc=liam@infradead.org \
--cc=linux-bcache@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=mgorman@suse.de \
--cc=mhocko@suse.com \
--cc=mingo@redhat.com \
--cc=peterz@infradead.org \
--cc=rppt@kernel.org \
--cc=vbabka@kernel.org \
--cc=vincent.guittot@linaro.org \
--cc=vschneid@redhat.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
all inboxes | Powered by JetHome®