linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] memremap: move from kernel/ to mm/
@ 2019-07-22  9:41 Christoph Hellwig
  2019-07-22  9:51 ` Anshuman Khandual
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Christoph Hellwig @ 2019-07-22  9:41 UTC (permalink / raw)
  To: dan.j.williams, akpm; +Cc: linux-mm, linux-nvdimm, linux-kernel

memremap.c implements MM functionality for ZONE_DEVICE, so it really
should be in the mm/ directory, not the kernel/ one.

Signed-off-by: Christoph Hellwig <hch@lst.de>
---

Sending for applying just after -rc1 preferably to avoid conflicts
later in the merge window

 kernel/Makefile           | 1 -
 mm/Makefile               | 1 +
 {kernel => mm}/memremap.c | 0
 3 files changed, 1 insertion(+), 1 deletion(-)
 rename {kernel => mm}/memremap.c (100%)

diff --git a/kernel/Makefile b/kernel/Makefile
index a8d923b5481b..ef0d95a190b4 100644
--- a/kernel/Makefile
+++ b/kernel/Makefile
@@ -111,7 +111,6 @@ obj-$(CONFIG_CONTEXT_TRACKING) += context_tracking.o
 obj-$(CONFIG_TORTURE_TEST) += torture.o
 
 obj-$(CONFIG_HAS_IOMEM) += iomem.o
-obj-$(CONFIG_ZONE_DEVICE) += memremap.o
 obj-$(CONFIG_RSEQ) += rseq.o
 
 obj-$(CONFIG_GCC_PLUGIN_STACKLEAK) += stackleak.o
diff --git a/mm/Makefile b/mm/Makefile
index 338e528ad436..d0b295c3b764 100644
--- a/mm/Makefile
+++ b/mm/Makefile
@@ -102,5 +102,6 @@ obj-$(CONFIG_FRAME_VECTOR) += frame_vector.o
 obj-$(CONFIG_DEBUG_PAGE_REF) += debug_page_ref.o
 obj-$(CONFIG_HARDENED_USERCOPY) += usercopy.o
 obj-$(CONFIG_PERCPU_STATS) += percpu-stats.o
+obj-$(CONFIG_ZONE_DEVICE) += memremap.o
 obj-$(CONFIG_HMM_MIRROR) += hmm.o
 obj-$(CONFIG_MEMFD_CREATE) += memfd.o
diff --git a/kernel/memremap.c b/mm/memremap.c
similarity index 100%
rename from kernel/memremap.c
rename to mm/memremap.c
-- 
2.20.1


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH] memremap: move from kernel/ to mm/
  2019-07-22  9:41 [PATCH] memremap: move from kernel/ to mm/ Christoph Hellwig
@ 2019-07-22  9:51 ` Anshuman Khandual
  2019-07-23  5:32 ` Dan Williams
  2019-08-02  8:32 ` Christoph Hellwig
  2 siblings, 0 replies; 5+ messages in thread
From: Anshuman Khandual @ 2019-07-22  9:51 UTC (permalink / raw)
  To: Christoph Hellwig, dan.j.williams, akpm
  Cc: linux-mm, linux-nvdimm, linux-kernel



On 07/22/2019 03:11 PM, Christoph Hellwig wrote:
> memremap.c implements MM functionality for ZONE_DEVICE, so it really
> should be in the mm/ directory, not the kernel/ one.
> 
> Signed-off-by: Christoph Hellwig <hch@lst.de>

This always made sense.

FWIW

Reviewed-by: Anshuman Khandual <anshuman.khandual@arm.com>


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] memremap: move from kernel/ to mm/
  2019-07-22  9:41 [PATCH] memremap: move from kernel/ to mm/ Christoph Hellwig
  2019-07-22  9:51 ` Anshuman Khandual
@ 2019-07-23  5:32 ` Dan Williams
  2019-08-02  8:32 ` Christoph Hellwig
  2 siblings, 0 replies; 5+ messages in thread
From: Dan Williams @ 2019-07-23  5:32 UTC (permalink / raw)
  To: Christoph Hellwig
  Cc: Andrew Morton, Linux MM, linux-nvdimm, Linux Kernel Mailing List

On Mon, Jul 22, 2019 at 2:42 AM Christoph Hellwig <hch@lst.de> wrote:
>
> memremap.c implements MM functionality for ZONE_DEVICE, so it really
> should be in the mm/ directory, not the kernel/ one.
>
> Signed-off-by: Christoph Hellwig <hch@lst.de>

Acked-by: Dan Williams <dan.j.williams@intel.com>


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] memremap: move from kernel/ to mm/
  2019-07-22  9:41 [PATCH] memremap: move from kernel/ to mm/ Christoph Hellwig
  2019-07-22  9:51 ` Anshuman Khandual
  2019-07-23  5:32 ` Dan Williams
@ 2019-08-02  8:32 ` Christoph Hellwig
  2019-08-02 19:14   ` Andrew Morton
  2 siblings, 1 reply; 5+ messages in thread
From: Christoph Hellwig @ 2019-08-02  8:32 UTC (permalink / raw)
  To: dan.j.williams, akpm; +Cc: linux-mm, linux-nvdimm, linux-kernel

Andrew,

I've seen you've queued this up in -mm, but the explicit intent here was
to quickly merge this after -rc1 so that the move doesn't conflict with
further development for 5.3.  Any chance you could send this patch on
to Linus?


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] memremap: move from kernel/ to mm/
  2019-08-02  8:32 ` Christoph Hellwig
@ 2019-08-02 19:14   ` Andrew Morton
  0 siblings, 0 replies; 5+ messages in thread
From: Andrew Morton @ 2019-08-02 19:14 UTC (permalink / raw)
  To: Christoph Hellwig; +Cc: dan.j.williams, linux-mm, linux-nvdimm, linux-kernel

On Fri, 2 Aug 2019 10:32:30 +0200 Christoph Hellwig <hch@lst.de> wrote:

> Andrew,
> 
> I've seen you've queued this up in -mm, but the explicit intent here was
> to quickly merge this after -rc1 so that the move doesn't conflict with
> further development for 5.3.

Didn't know that.

>  Any chance you could send this patch on to Linus?

Sure, I'll add it to today's batch.


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2019-08-02 19:14 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-22  9:41 [PATCH] memremap: move from kernel/ to mm/ Christoph Hellwig
2019-07-22  9:51 ` Anshuman Khandual
2019-07-23  5:32 ` Dan Williams
2019-08-02  8:32 ` Christoph Hellwig
2019-08-02 19:14   ` Andrew Morton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).