在 2025/9/22 16:08, Andrew Morton 写道:
On Mon, 22 Sep 2025 15:31:42 -0700 "yanjun.zhu" <[email protected]> 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(!).

Thanks for your input. I consider this a trivial issue. RCT will help make the local variables more organized. Since the Linux MM code does not currently use RCT and prefers to group similar logical variables and initialize these local variables, I am fine with the current approach.

Yanjun.Zhu


--
Best Regards,
Yanjun.Zhu


Reply via email to