Re: [PATCH v2 11/13] alloc_tag: Move to mm/
From: Suren Baghdasaryan
Date: Tue Jun 23 2026 - 19:48:22 EST
On Tue, Jun 23, 2026 at 10:29 AM Lorenzo Stoakes <ljs@xxxxxxxxxx> wrote:
>
> On Mon, Jun 22, 2026 at 10:01:38AM +0000, Brendan Jackman wrote:
> > This is logically mm code. Moving to mm/ allows access to mm/internal.h
> >
> > Signed-off-by: Brendan Jackman <jackmanb@xxxxxxxxxx>
>
> Sorry to be a pain, but I feel that this change should be dealt with separately
> perhaps as a pre-requisite to this series.
I know you have an idea for some cleanup. Let's wait for your patch
and then rebase this series over it. In the meantime I'll start
reviewing the rest.
>
> Thanks, Lorenzo
>
> > ---
> > MAINTAINERS | 2 +-
> > lib/Makefile | 1 -
> > mm/Makefile | 1 +
> > {lib => mm}/alloc_tag.c | 0
> > 4 files changed, 2 insertions(+), 2 deletions(-)
> >
> > diff --git a/MAINTAINERS b/MAINTAINERS
> > index 65bd4328fe056..5d426b79b8fe7 100644
> > --- a/MAINTAINERS
> > +++ b/MAINTAINERS
> > @@ -16713,7 +16713,7 @@ S: Maintained
> > F: Documentation/mm/allocation-profiling.rst
> > F: include/linux/alloc_tag.h
> > F: include/linux/pgalloc_tag.h
> > -F: lib/alloc_tag.c
> > +F: mm/alloc_tag.c
> >
> > MEMORY CONTROLLER DRIVERS
> > M: Krzysztof Kozlowski <krzk@xxxxxxxxxx>
> > diff --git a/lib/Makefile b/lib/Makefile
> > index f33a24bf1c19a..44f6538533a97 100644
> > --- a/lib/Makefile
> > +++ b/lib/Makefile
> > @@ -197,7 +197,6 @@ obj-$(CONFIG_OF_RECONFIG_NOTIFIER_ERROR_INJECT) += \
> > obj-$(CONFIG_FUNCTION_ERROR_INJECTION) += error-inject.o
> >
> > obj-$(CONFIG_CODE_TAGGING) += codetag.o
> > -obj-$(CONFIG_MEM_ALLOC_PROFILING) += alloc_tag.o
> >
> > lib-$(CONFIG_GENERIC_BUG) += bug.o
> >
> > diff --git a/mm/Makefile b/mm/Makefile
> > index eff9f9e7e061c..4fc713867b9bd 100644
> > --- a/mm/Makefile
> > +++ b/mm/Makefile
> > @@ -147,3 +147,4 @@ obj-$(CONFIG_SHRINKER_DEBUG) += shrinker_debug.o
> > obj-$(CONFIG_EXECMEM) += execmem.o
> > obj-$(CONFIG_TMPFS_QUOTA) += shmem_quota.o
> > obj-$(CONFIG_LAZY_MMU_MODE_KUNIT_TEST) += tests/lazy_mmu_mode_kunit.o
> > +obj-$(CONFIG_MEM_ALLOC_PROFILING) += alloc_tag.o
> > diff --git a/lib/alloc_tag.c b/mm/alloc_tag.c
> > similarity index 100%
> > rename from lib/alloc_tag.c
> > rename to mm/alloc_tag.c
> >
> > --
> > 2.54.0
> >