Skip to contentSkip to conversation

samples-damon-mtier-add-comment-for-struct-region_range.patch removed from -mm tree

merged mm-stable Andrew Morton 1 participant 1 message Oct 7

lore
Share & tools
lore

Andrew Morton

author tree notice Applied
#0 lore raw

The quilt patch titled
Subject: samples/damon/mtier: add comment for struct region_range
has been removed from the -mm tree. Its filename was
samples-damon-mtier-add-comment-for-struct-region_range.patch

This patch was dropped because it was merged into the mm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm

------------------------------------------------------
From: Enze Li <[email protected]>
Subject: samples/damon/mtier: add comment for struct region_range
Date: Mon, 31 Aug 2026 07:26:09 -0700

The mtier sample defines a local struct region_range using phys_addr_t instead of damon_addr_range which uses unsigned long. Add a comment explaining the rationale: on 32-bit systems with more than 4GiB memory, phys_addr_t will be 64-bit while unsigned long is 32-bit.

---

 samples/damon/mtier.c |    5 +++++
 1 file changed, 5 insertions(+)
samples/damon/mtier.c renamed from samples/damon/mtier.c~samples-damon-mtier-add-comment-for-struct-region_range +5 -0
@@ -52,6 +52,11 @@ module_param(detect_node_addresses, bool
 
 static struct damon_ctx *ctxs[2];
 
+/*
+ * Use phys_addr_t instead of damon_addr_range (unsigned long) for physical
+ * addresses.  On 32-bit systems with more than 4GB memory, phys_addr_t will
+ * be 64-bit while unsigned long is 32-bit.
+ */
 struct region_range {
 	phys_addr_t start;
 	phys_addr_t end;

_

Patches currently in -mm which might be from [email protected] are

maintainers-cover-all-hugetlb-headers-under-hugetlb-subsystem.patch mm-hugetlb_cgroup-add-trailing-endif-comment-for-include-guard.patch docs-hugetlbpagerst-fix-typo-in-per-node-attribute-description.patch