[PATCH RESEND v2 12/23] seq_file: add seq_preallocate()
sashiko-bot at kernel.org
sashiko-bot at kernel.org
Thu Nov 5 11:35:37 PST 2026
> single_open_size() allocates the buffer itself because it does the
> single_open() too. A file whose seq_file is opened by somebody else,
> like procfs does now, needs to do that after the fact. Add
> seq_preallocate() for that and use it in single_open_size().
>
> No functional changes.
>
> Signed-off-by: Christian Brauner (Amutable) <brauner at kernel.org>
Sashiko has reviewed this patch and found no issues.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261104-work-procfs-core-v2-0-76ace653a773@kernel.org?part=12
More information about the kexec
mailing list