samples/damon/mtier: add comment for struct region_range

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.

Link: https://lore.kernel.org/20260831142611.77572-8-sj@kernel.org
Signed-off-by: Enze Li <lienze@kylinos.cn>
Signed-off-by: SJ Park <sj@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Reviewed-by: SJ Park <sj@kernel.org>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Hari Mishal <harimishal1@gmail.com>
Cc: Jaeyeon Lee <jaeyeon.lee.dev@gmail.com>
Cc: Li Youhong <liyouhong@kylinos.cn>
Cc: Shuah Khan <shuah@kernel.org>
Cc: "Zenghui Yu (Huawei)" <zenghui.yu@linux.dev>
Cc: zhaozhengzhuo <zhaozhengzhuo@uniontech.com>
This commit is contained in:
Enze Li 2026-08-31 07:26:09 -07:00 committed by Andrew Morton
parent 3009b0a76c
commit fb14504f2e

View File

@ -52,6 +52,11 @@ module_param(detect_node_addresses, bool, 0600);
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;