[PATCH v5 3/4] kho: add support for preserving vmalloc allocations

Andrew Morton akpm at linux-foundation.org
Mon Sep 22 16:08:36 PDT 2025


On Mon, 22 Sep 2025 15:31:42 -0700 "yanjun.zhu" <yanjun.zhu at linux.dev> wrote:

> > +int kho_preserve_vmalloc(void *ptr, struct kho_vmalloc *preservation)
> > +{
> > +	struct kho_vmalloc_chunk *chunk;
> > +	struct vm_struct *vm = find_vm_area(ptr);
> > +	unsigned int order, flags, nr_contig_pages;
> > +	unsigned int idx = 0;
> > +	int err;
> 
> This is a trivial issue. I’m not sure whether RCT (Reverse Christmas 
> Trees) is used in the Linux MM mailing list.

Not as far as I know.  Some like it.

If I was to have a preference I'd suggest that things be laid out in a
logical order rather than by column count.  Group like things together,
avoid use of unintialized storage in initializers(!).




More information about the kexec mailing list