From: Steven Rostedt <rostedt@goodmis.org>
To: Li Pengfei <ljdlns1987@gmail.com>
Cc: linux-trace-devel@vger.kernel.org
Subject: Re: [PATCH] libtracefs: Pass the pipe size by value to F_SETPIPE_SZ
Date: Sat, 7 Nov 2026 17:42:08 -0500 [thread overview]
Message-ID: <20261107174208.6400402e@fedora> (raw)
In-Reply-To: <20261107174011.7d86b1de@fedora>
On Sat, 7 Nov 2026 17:40:11 -0500
Steven Rostedt <rostedt@goodmis.org> wrote:
> > if (tfs_str_read_file("/proc/sys/fs/pipe-max-size", &buf, false) > 0) {
> > int size = atoi(buf);
> > - fcntl(tcpu->splice_pipe[0], F_SETPIPE_SZ, &size);
> > +
> > + /* F_SETPIPE_SZ takes the size itself, not a pointer to it */
>
> Nit. You don't need to add comments to bug fixes. That is, the above
> comment is useless.
Let me rephrase that. You can add comments to bug fixes. What I meant
was, the above comment is basically stating what was fixed, which is
useless for those looking at the code after the update.
-- Steve
>
>
> > + fcntl(tcpu->splice_pipe[0], F_SETPIPE_SZ, size);
> > free(buf);
> > }
next prev parent reply other threads:[~2026-11-07 22:42 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-07 14:07 [PATCH] libtracefs: Pass the pipe size by value to F_SETPIPE_SZ Li Pengfei
2026-11-07 22:40 ` Steven Rostedt
2026-11-07 22:42 ` Steven Rostedt [this message]
2026-11-08 5:44 ` [PATCH v2] " Li Pengfei
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=20261107174208.6400402e@fedora \
--to=rostedt@goodmis.org \
--cc=linux-trace-devel@vger.kernel.org \
--cc=ljdlns1987@gmail.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