Re: [PATCH v2] tools/mm: add a drgn script to show HugeTLB reservations

From: Aveline Noir

Date: Sun Dec 06 2026 - 01:30:22 EST


Hi Sashiko,

On Sun, 06 Dec 2026 05:44:34 +0000 sashiko-bot@xxxxxxxxxx wrote:

> Does this container_of() drop all inode names on kernels older than commit
> 2420067cecac ("struct dentry: make ->d_u anonymous")?

Yes, I'll use d_u.d_alias on older kernels in v3.

> Can private_mappings() walk inode->i_data.i_mmap on the already-collected
> hugetlbfs inodes instead of scanning every VMA of every task?

Makes sense. It's a bigger change, but I think it's worth doing, so
I'll take some time to rework it.

Thanks,
Aveline Noir