[2] https://lkml.org/lkml/2018/7/26/684
Mike Rapoport (3):
docs: core-api/gfp_mask-from-fs-io: add a label for cross-referencing
docs: core-api/mm-api: add a lable for GFP flags section
docs: core-api: add memory allocation guide
Documentation/core-api/gfp_mask-from-fs-io.rst | 2 +
Document
Signed-off-by: Mike Rapoport
Acked-by: Michal Hocko
---
Documentation/core-api/index.rst | 1 +
Documentation/core-api/memory-allocation.rst | 124 +++
2 files changed, 125 insertions(+)
create mode 100644 Documentation/core-api/memory-allocation.rst
diff
On Mon, Aug 06, 2018 at 04:52:24PM +1000, Rashmica Gupta wrote:
> When hot-removing memory release_mem_region_adjustable() splits
> iomem resources if they are not the exact size of the memory being
> hot-deleted. Adding this memory back to the kernel adds a new
> resource.
>
> Eg a node has
block into a separate helper function.
Signed-off-by: Mike Rapoport
Suggested-by: Sam Ravnborg
---
arch/sparc/mm/init_32.c | 56 +++--
1 file changed, 31 insertions(+), 25 deletions(-)
diff --git a/arch/sparc/mm/init_32.c b/arch/sparc/mm/init_32.c
index
Signed-off-by: Mike Rapoport
---
arch/sparc/mm/init_32.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/arch/sparc/mm/init_32.c b/arch/sparc/mm/init_32.c
index 95fe4f0..3ec10b2 100644
--- a/arch/sparc/mm/init_32.c
+++ b/arch/sparc/mm/init_32.c
@@ -133,7 +133,7
] https://lkml.org/lkml/2018/8/2/403
Mike Rapoport (3):
sparc: mm/init_32: kill trailing whitespace
sparc32: switch to NO_BOOTMEM
sparc32: split ramdisk detection and reservation to a helper function
arch/sparc/Kconfig | 4 +-
arch/sparc/mm/init_32.c | 127
Each populated sparc_phys_bank is added to memblock.memory. The
reserve_bootmem() calls are replaced with memblock_reserve(), and the
bootmem bitmap initialization is droppped.
Signed-off-by: Mike Rapoport
---
arch/sparc/Kconfig | 4 +--
arch/sparc/mm/init_32.c | 75
Any updates on this?
On Fri, Aug 03, 2018 at 10:58:43PM +0300, Mike Rapoport wrote:
>
> Hi,
>
> These patches perform conversion to NO_BOOTMEM of hexagon, nios2, uml and
> unicore32. The architecture maintainers have acked the patches, but, since
> I've got no confirmation the
MIPS already has memblock support and all the memory is already registered
with it.
This patch replaces bootmem memory reservations with memblock ones and
removes the bootmem initialization.
Signed-off-by: Mike Rapoport
---
arch/mips/Kconfig | 1 +
arch/mips/kernel
On Mon, Aug 27, 2018 at 10:21:00AM +0200, Bartosz Golaszewski wrote:
> Provide a resource managed version of kstrdup_const(). This variant
> internally calls devm_kstrdup() on pointers that are outside of
> .rodata section. Also provide a corresponding version of devm_kfree().
>
> Signed-off-by:
On Mon, Aug 27, 2018 at 10:21:01AM +0200, Bartosz Golaszewski wrote:
> Use devm_kstrdup_const() in the pmc-atom driver. This mostly serves as
> an example of how to use this new routine to shrink driver code.
>
> While we're at it: replace a call to kcalloc() with devm_kcalloc().
>
>
On Mon, Aug 27, 2018 at 02:58:46PM +0200, Bartosz Golaszewski wrote:
> 2018-08-27 14:52 GMT+02:00 Mike Rapoport :
> > On Mon, Aug 27, 2018 at 02:28:45PM +0200, Bartosz Golaszewski wrote:
> >> 2018-08-27 12:39 GMT+02:00 Mike Rapoport :
> >> > On Mon, Aug 27, 201
On Mon, Aug 27, 2018 at 02:28:45PM +0200, Bartosz Golaszewski wrote:
> 2018-08-27 12:39 GMT+02:00 Mike Rapoport :
> > On Mon, Aug 27, 2018 at 10:21:01AM +0200, Bartosz Golaszewski wrote:
> >> Use devm_kstrdup_const() in the pmc-atom driver. This mostly serves as
> >&g
On Mon, Aug 27, 2018 at 11:46:33PM -0300, Thiago Jung Bauermann wrote:
>
> Hello Mike,
>
> Mike Rapoport writes:
>
> > Hi,
> >
> > On Fri, Aug 03, 2018 at 07:00:46PM -0300, Thiago Jung Bauermann wrote:
> >> If userfaultfd runs on a system that doesn
On Mon, Aug 27, 2018 at 04:28:55PM +0200, Bartosz Golaszewski wrote:
> 2018-08-27 12:33 GMT+02:00 Mike Rapoport :
> > On Mon, Aug 27, 2018 at 10:21:00AM +0200, Bartosz Golaszewski wrote:
> >> Provide a resource managed version of kstrdup_const(). This variant
> >> in
ING | VM_UFFD_WP)));
Thanks for the CC.
The fix is below.
--
Sincerely yours,
Mike.
>From 3711b6a72abe3796b2b97fdba8eadd995b29f195 Mon Sep 17 00:00:00 2001
From: Mike Rapoport
Date: Wed, 18 Jul 2018 09:45:54 +0300
Subject: [PATCH] userfaultfd: remove uffd flags from vma->vm_flags if
UFFD_E
MIPS already has memblock support and all the memory is already registered
with it.
This patch replaces bootmem memory reservations with memblock ones and
removes the bootmem initialization.
Signed-off-by: Mike Rapoport
---
The "generic" part was tested with qemu-system-mipsel (both
This patch adds registration of the system memory with memblock, eliminates
bootmem initialization and converts early memory reservations from bootmem
to memblock.
Signed-off-by: Mike Rapoport
---
Build tested only.
arch/hexagon/Kconfig | 3 +++
arch/hexagon/mm/init.c | 20
initialization and leaves memblock as the
only boot time memory manager for unicore32.
Signed-off-by: Mike Rapoport
---
I couldn't get unicore32 toolchain as the only link I was able to find [1]
gives me timeout, so the best I could do to check the changes was
gcc -c arch/unicore32/mm
On Mon, Jul 23, 2018 at 04:23:39PM -0500, Richard Kuo wrote:
>
> On Mon, Jul 16, 2018 at 10:43:18AM +0300, Mike Rapoport wrote:
> > This patch adds registration of the system memory with memblock, eliminates
> > bootmem initialization and converts early memory reserva
On Tue, Jul 24, 2018 at 09:12:55PM -0500, Richard Kuo wrote:
> On Tue, Jul 24, 2018 at 08:47:04AM +0300, Mike Rapoport wrote:
> > On Mon, Jul 23, 2018 at 04:23:39PM -0500, Richard Kuo wrote:
> > >
> > > On Mon, Jul 16, 2018 at 10:43:18AM +0300, Mike Rapoport wro
This patch adds registration of the system memory with memblock, eliminates
bootmem initialization and converts early memory reservations from bootmem
to memblock.
Signed-off-by: Mike Rapoport
---
v2: fix calculation of the reserved memory size
arch/hexagon/Kconfig | 3 +++
arch/hexagon/mm
The string and memory duplication routines fit better to the "String
Manipulation" section than to "The SLAB Cache".
Signed-off-by: Mike Rapoport
---
Documentation/core-api/kernel-api.rst | 6 +-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/Documenta
This patch adds DOC: headings for GFP flag descriptions and adjusts the
formatting to fit sphinx expectations of paragraphs.
Signed-off-by: Mike Rapoport
---
include/linux/gfp.h | 291 +++-
1 file changed, 154 insertions(+), 137 deletions(-)
diff
Signed-off-by: Mike Rapoport
---
Documentation/core-api/kernel-api.rst | 1 -
1 file changed, 1 deletion(-)
diff --git a/Documentation/core-api/kernel-api.rst
b/Documentation/core-api/kernel-api.rst
index 76fe2d0f..25e9496 100644
--- a/Documentation/core-api/kernel-api.rst
+++ b/Documentation
Signed-off-by: Mike Rapoport
---
Documentation/core-api/index.rst | 1 +
Documentation/core-api/kernel-api.rst | 54 ---
Documentation/core-api/mm-api.rst | 54 +++
3 files changed, 55 insertions(+), 54 deletions
formating of the GFP flags description and include it in the
reference documentation.
Mike Rapoport (7):
mm/util: make strndup_user description a kernel-doc comment
mm/util: add kernel-doc for kvfree
docs/core-api: kill trailing whitespace in kernel-api.rst
docs/core-api: move *{str,mem}dup*
The description of the strndup_user function misses '*' character at the
beginning of the comment to be proper kernel-doc. Add the missing
character.
Signed-off-by: Mike Rapoport
---
mm/util.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mm/util.c b/mm/util.c
index
Signed-off-by: Mike Rapoport
---
Documentation/core-api/mm-api.rst | 22 ++
1 file changed, 22 insertions(+)
diff --git a/Documentation/core-api/mm-api.rst
b/Documentation/core-api/mm-api.rst
index 65a8ef09..1e8c011 100644
--- a/Documentation/core-api/mm-api.rst
+++ b
Signed-off-by: Mike Rapoport
---
mm/util.c | 7 +++
1 file changed, 7 insertions(+)
diff --git a/mm/util.c b/mm/util.c
index 6809014..d2890a4 100644
--- a/mm/util.c
+++ b/mm/util.c
@@ -434,6 +434,13 @@ void *kvmalloc_node(size_t size, gfp_t flags, int node)
}
EXPORT_SYMBOL(kvmalloc_node
On Wed, Jul 25, 2018 at 05:05:00AM -0700, Matthew Wilcox wrote:
> On Wed, Jul 25, 2018 at 02:26:08PM +0300, Mike Rapoport wrote:
> > +User Space Memory Access
> > +
> > +
> > +.. kernel-doc:: arch/x86/include/asm/uaccess.h
> > + :internal
Hi,
On Tue, Jul 24, 2018 at 11:42:07PM -0300, Thiago Jung Bauermann wrote:
> If the userfaultfd test is run on a kernel with CONFIG_USERFAULTFD=n, it
> will report that the system call is not available yet go ahead and continue
> anyway:
>
> # ./userfaultfd anon 30 1
> nr_pages: 480,
Hi,
On Tue, Jul 24, 2018 at 11:42:08PM -0300, Thiago Jung Bauermann wrote:
> If userfaultfd runs on a system that doesn't support some feature it is
> trying to test, it currently ends with error code 1 which indicates
> test failure:
>
> # ./userfaultfd anon 10 10
> nr_pages: 160,
Hi,
On Tue, Jul 24, 2018 at 11:42:09PM -0300, Thiago Jung Bauermann wrote:
> If userfaultfd runs on a system that doesn't support UFFDIO_ZEROPAGE for
> shared memory, it currently ends with error code 1 which indicates test
> failure:
>
> # ./userfaultfd shmem 10 10
> nr_pages: 160,
the
bootmem bitmap is removed.
Signed-off-by: Mike Rapoport
---
arch/ia64/Kconfig| 1 +
arch/ia64/kernel/setup.c | 11 ++-
arch/ia64/mm/contig.c| 71 --
arch/ia64/mm/discontig.c | 74
4 files
Since commit 05e0caad3b7b ("[PATCH] Have ia64 use add_active_range() and
free_area_init_nodes") the num_dma_physpages member of 'struct
early_node_data' is calculated but never used. Remove it.
Signed-off-by: Mike Rapoport
---
arch/ia64/mm/discontig.c | 8
1 file changed, 8
and build tested other
defconfigs.
Mike Rapoport (4):
ia64: contig/paging_init: reduce code duplication
ia64: remove unused num_dma_physpages member from 'struct early_node_data'
ia64: use mem_data to detect nodes' minimal and maximal PFNs
ia64: switch to NO_BOOTMEM
arch/ia64/Kconfig
-by: Mike Rapoport
---
arch/ia64/mm/discontig.c | 60 +++-
1 file changed, 14 insertions(+), 46 deletions(-)
diff --git a/arch/ia64/mm/discontig.c b/arch/ia64/mm/discontig.c
index 6148ea8..8e99d8e 100644
--- a/arch/ia64/mm/discontig.c
+++ b/arch/ia64/mm
The FLATMEM version of paging_init has calls to free_area_init_nodes() in
the end of every branch of 'if' and 'ifdef' statements.
Let's call this function outside the 'ifdef' and 'if' statements instead.
Signed-off-by: Mike Rapoport
---
arch/ia64/mm/contig.c | 4 +---
1 file changed, 1
The kernel-doc for mempool_init function is missing the description of the
pool parameter. Add it.
Signed-off-by: Mike Rapoport
---
mm/mempool.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/mm/mempool.c b/mm/mempool.c
index b54f2c2..9e16b63 100644
--- a/mm/mempool.c
+++ b/mm/mempool.c
The setup_physmem() function receives uml_physmem and uml_reserved as
parameters and still used these global variables. Replace such usage with
local variables.
Signed-off-by: Mike Rapoport
---
arch/um/kernel/physmem.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git
Hi,
These patches convert UML to use NO_BOOTMEM.
Tested on x86-64.
Mike Rapoport (2):
um: setup_physmem: stop using global variables
um: switch to NO_BOOTMEM
arch/um/Kconfig.common | 2 ++
arch/um/kernel/physmem.c | 22 ++
2 files changed, 12 insertions(+), 12
Replace bootmem initialization with memblock_add and memblock_reserve calls
and explicit initialization of {min,max}_low_pfn.
Signed-off-by: Mike Rapoport
---
arch/um/Kconfig.common | 2 ++
arch/um/kernel/physmem.c | 20 +---
2 files changed, 11 insertions(+), 11 deletions
Hi Paul,
On Thu, Aug 30, 2018 at 02:48:57PM -0700, Paul Burton wrote:
> Hi Mike,
>
> On Mon, Aug 27, 2018 at 10:59:35AM +0300, Mike Rapoport wrote:
> > MIPS already has memblock support and all the memory is already registered
> > with it.
> >
> > This patch rep
On Wed, Sep 05, 2018 at 10:47:10AM -0700, Paul Burton wrote:
> Hi Mike,
>
> On Sat, Sep 01, 2018 at 12:17:48AM +0300, Mike Rapoport wrote:
> > On Thu, Aug 30, 2018 at 02:48:57PM -0700, Paul Burton wrote:
> > > On Mon, Aug 27, 2018 at 10:59:35AM +0300, Mike Rapoport wrote:
>
> On Wed, Sep 5, 2018 at 9:38 PM Mike Rapoport wrote:
>
> On Wed, Sep 05, 2018 at 10:47:10AM -0700, Paul Burton wrote:
> > Hi Mike,
> >
> > On Sat, Sep 01, 2018 at 12:17:48AM +0300, Mike Rapoport wrote:
> > > On Thu, Aug 30, 2018 at 02:4
Hi,
On Wed, Sep 05, 2018 at 07:51:34PM +, Pasha Tatashin wrote:
>
> On 9/5/18 2:38 AM, Mike Rapoport wrote:
> > On Tue, Sep 04, 2018 at 05:28:13PM -0400, Daniel Jordan wrote:
> >> Pavel Tatashin, Ying Huang, and I are excited to be organizing a
> >&g
allocations from the high memory.
To have the exceptions base in the lower 512M of the physical memory, its
allocation in arch/mips/kernel/traps.c::traps_init() is using bottom-up
mode.
Signed-off-by: Mike Rapoport
---
v2:
* set memblock limit to max_low_pfn to avoid allocation attempts from
On Tue, Sep 04, 2018 at 05:28:13PM -0400, Daniel Jordan wrote:
> Pavel Tatashin, Ying Huang, and I are excited to be organizing a performance
> and scalability microconference this year at Plumbers[*], which is happening
> in Vancouver this year. The microconference is scheduled for the morning
On Wed, Jul 04, 2018 at 10:22:32AM -0700, Joe Perches wrote:
> On Wed, 2018-07-04 at 10:03 +0300, Mike Rapoport wrote:
> > On Tue, Jul 03, 2018 at 01:24:07PM -0700, Joe Perches wrote:
> > > On Tue, 2018-07-03 at 12:57 -0700, Andrew Morton wrote:
> > > > Did you
on Sep 17 00:00:00 2001
> From: Michal Hocko
> Date: Wed, 4 Jul 2018 14:31:46 +0200
> Subject: [PATCH] memblock: do not complain about top-down allocations for
> !MEMORY_HOTREMOVE
>
> Mike Rapoport is converting architectures from bootmem to noboodmem
> allocator. While doin
On Wed, Jul 04, 2018 at 02:51:21PM +0200, Michal Hocko wrote:
> On Wed 04-07-18 15:43:35, Mike Rapoport wrote:
> > On Wed, Jul 04, 2018 at 02:36:27PM +0200, Michal Hocko wrote:
> [...]
> > > diff --git a/mm/memblock.c b/mm/memblock.c
> > > index 03d48d8835ba..2ace
tion bit.
>
Something like this:
>From 0d3e7cf494123c2640b9a892160d2e2430787004 Mon Sep 17 00:00:00 2001
From: Mike Rapoport
Date: Wed, 4 Jul 2018 09:55:50 +0300
Subject: [PATCH] treewide: retire '%pF/%pf'
%p[Ff] got deprecated by commit 04b8eb7a4ccd9ef9343e2720ccf2a5db8cfe2f67
("s
On Tue, Jul 03, 2018 at 12:57:22PM -0700, Andrew Morton wrote:
> On Tue, 3 Jul 2018 20:05:06 +0300 Mike Rapoport
> wrote:
>
> > Most functions in memblock already use phys_addr_t to represent a physical
> > address with __memblock_free_late() being an exception.
> &g
On Wed, Jul 04, 2018 at 06:43:44PM +0900, Sergey Senozhatsky wrote:
> On (07/04/18 18:20), Sergey Senozhatsky wrote:
> > > There's this saying about habits made to be broken.
> > > This is one of those habits.
> > >
> > > I'd expect more people probably get the %pS or %ps wrong
> > > than use
On Wed, Jul 04, 2018 at 04:54:49PM +0900, Sergey Senozhatsky wrote:
> On (07/04/18 10:03), Mike Rapoport wrote:
> > arch/alpha/kernel/pci_iommu.c | 20 ++--
> > arch/arm/mm/alignment.c | 2 +-
> > arch/arm/nwfpe/fpmodule.c
0 after rounding in
early_init_dt_add_memory_arch") introduced a test for wrap around for the
case when base is not page aligned, the same test can be used to ignore
sub-page region sizes.
Signed-off-by: Mike Rapoport
---
drivers/of/fdt.c | 11 ++-
1 file changed, 6 insertions(+)
Remove bootmem bitmap initialization and replace reserve_bootmem() with
memblock_reserve().
Signed-off-by: Mike Rapoport
---
arch/nios2/Kconfig| 2 ++
arch/nios2/kernel/prom.c | 7 ---
arch/nios2/kernel/setup.c | 37 +
3 files changed, 7
All we have to do is to enable memblock, the generic FDT code will take
care of the rest.
Signed-off-by: Mike Rapoport
---
arch/nios2/Kconfig| 1 +
arch/nios2/kernel/prom.c | 10 --
arch/nios2/kernel/setup.c | 2 ++
3 files changed, 3 insertions(+), 10 deletions(-)
diff
Any comments on this?
On Wed, Jun 27, 2018 at 03:09:20PM +0300, Mike Rapoport wrote:
> The c6x is already using memblock and does most of early memory
> reservations with it, so it was only a matter of removing the bootmem
> initialization and handover of the memory from memblock t
On Wed, Jul 04, 2018 at 03:05:00PM +0200, Michal Hocko wrote:
> On Tue 03-07-18 20:05:06, Mike Rapoport wrote:
> > Most functions in memblock already use phys_addr_t to represent a physical
> > address with __memblock_free_late() being an exception.
> >
> &
. It's just
I've got really interesting memory layout without it because of 1K long
memory ranges defined in arch/nios2/boot/dts/10m50_devboard.dts.
Mike Rapoport (3):
of: ignore sub-page memory regions
nios2: use generic early_init_dt_add_memory_arch
nios2: switch to NO_BOOTMEM
arch/nios2
On Tue, Jul 03, 2018 at 08:05:35AM -0700, Matthew Wilcox wrote:
> On Tue, Jul 03, 2018 at 06:03:16PM +0300, Mike Rapoport wrote:
> > On Tue, Jul 03, 2018 at 04:20:54PM +0200, Michal Hocko wrote:
> > > On Tue 03-07-18 13:29:54, Mike Rapoport wrote:
> > > > Add exp
On Tue, Jul 03, 2018 at 05:14:01PM +0200, Michal Hocko wrote:
> On Tue 03-07-18 08:05:35, Matthew Wilcox wrote:
> > On Tue, Jul 03, 2018 at 06:03:16PM +0300, Mike Rapoport wrote:
> > > On Tue, Jul 03, 2018 at 04:20:54PM +0200, Michal Hocko wrote:
> > > > On Tue 03
On Tue, Jul 03, 2018 at 05:14:01PM +0200, Michal Hocko wrote:
> On Tue 03-07-18 08:05:35, Matthew Wilcox wrote:
> > On Tue, Jul 03, 2018 at 06:03:16PM +0300, Mike Rapoport wrote:
> > > On Tue, Jul 03, 2018 at 04:20:54PM +0200, Michal Hocko wrote:
> > > > On Tue 03
: Michal Hocko
CC: Matthew Wilcox
Signed-off-by: Mike Rapoport
---
mm/memblock.c | 46 +++---
1 file changed, 23 insertions(+), 23 deletions(-)
diff --git a/mm/memblock.c b/mm/memblock.c
index 03d48d8..20ad8e9 100644
--- a/mm/memblock.c
+++ b/mm/memblock.c
with the
> infix *_regulator_* as part of this patch set.
>
> Intel MID portions tested by Andy.
>
> Cc: Janusz Krzysztofik # OMAP1
> Cc: Alexander Shiyan # i.MX boards user
> Cc: Haojian Zhuang # MMP2 maintainer
> Cc: Aaro Koskinen # OMAP1 maintainer
> Cc: Mike Rapopo
Jon, Andrew,
How do you suggest to continue with this?
On Sun, Apr 01, 2018 at 09:38:58AM +0300, Mike Rapoport wrote:
> (added akpm)
>
> On Thu, Mar 29, 2018 at 03:46:07PM -0600, Jonathan Corbet wrote:
> > On Wed, 21 Mar 2018 21:22:16 +0200
> > Mike Rapoport <r...@l
On Sun, Apr 15, 2018 at 03:08:56AM +0800, Peng Hao wrote:
> userfaultfd.c: In function ‘hugetlb_release_pages’:
> userfaultfd.c:145:25: error: ‘FALLOC_FL_PUNCH_HOLE’ undeclared
> (first use in this function)
>
> Signed-off-by: Peng Hao
> ---
>
Signed-off-by: Mike Rapoport <r...@linux.vnet.ibm.com>
---
Documentation/admin-guide/index.rst| 1 +
Documentation/admin-guide/mm/index.rst | 19 +++
2 files changed, 20 insertions(+)
create mode 100644 Documentation/admin-guide/mm/index.rst
diff --git a/Documentation
Several documents in Documentation/vm fit quite well into the "admin/user
guide" category. The documents that don't overload the reader with lots of
implementation details and provide coherent description of certain feature
can be moved to Documentation/admin-guide/mm.
Signed-of
* fixed mistypes
* added internal cross-references for sections
Signed-off-by: Mike Rapoport <r...@linux.vnet.ibm.com>
---
Documentation/vm/hugetlbpage.rst | 17 ++---
1 file changed, 10 insertions(+), 7 deletions(-)
diff --git a/Documentation/vm/hugetlbpage.rst b/Documentat
Signed-off-by: Mike Rapoport <r...@linux.vnet.ibm.com>
---
Documentation/admin-guide/mm/hugetlbpage.rst| 3 ++-
Documentation/admin-guide/mm/idle_page_tracking.rst | 5 +++--
Documentation/admin-guide/mm/pagemap.rst| 18 +++---
3 files changed, 16 inse
Signed-off-by: Mike Rapoport <r...@linux.vnet.ibm.com>
---
Documentation/vm/pagemap.rst | 16
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/Documentation/vm/pagemap.rst b/Documentation/vm/pagemap.rst
index d54b4bf..9644bc0 100644
--- a/Documentation/vm/pagem
The hugetlbpage describes hugetlbfs from the user perspective and newer
hugetlbfs_reserv document targets kernel developers. Hence the section
about hugetlbfs kernel development naturally belongs there.
Signed-off-by: Mike Rapoport <r...@linux.vnet.ibm.com>
---
Documentat
Hi,
These pacthes begin categorizing memory management documentation. The
documents that describe userspace APIs and do not overload the reader with
implementation details can be moved to Documentation/admin-guide, so let's
do it :)
Mike Rapoport (7):
docs/vm: hugetlbpage: minor improvements
"pagemap from the Userspace Perspective" is not very descriptive for
unaware readers. Since the document describes how to examine a process page
tables, let's title it "Examining Process Page Tables"
Signed-off-by: Mike Rapoport <r...@linux.vnet.ibm.com>
---
Docume
On Fri, Apr 13, 2018 at 01:55:51PM -0600, Jonathan Corbet wrote:
> Sorry for the silence, I'm pedaling as fast as I can, honest...
>
> On Sun, 1 Apr 2018 09:38:58 +0300
> Mike Rapoport <r...@linux.vnet.ibm.com> wrote:
>
> > My thinking was to start wit
On Fri, Apr 13, 2018 at 01:21:08PM -0700, Matthew Wilcox wrote:
> On Fri, Apr 13, 2018 at 01:55:51PM -0600, Jonathan Corbet wrote:
> > > I believe that keeping the mm docs together will give better visibility of
> > > what (little) mm documentation we have and will make the updates easier.
> > >
Make the description of stable_node_chains_prune_millisecs sysfs parameter
less implementation aware and add a few words about this parameter in the
"Design" section.
Signed-off-by: Mike Rapoport <r...@linux.vnet.ibm.com>
---
Documentation/vm/ksm.rst | 19 +++
1
Remove implementation details from sysfs parameter descriptions.
Also move the paragraph discussing fragmentation issues and their possible
solution to the "Design" section.
Signed-off-by: Mike Rapoport <r...@linux.vnet.ibm.com>
---
Documentation/vm/ksm.rst | 21 ++---
The description of "max_page_sharing" sysfs attribute includes lots of
implementation details that more naturally belong in the "Design"
section.
Signed-off-by: Mike Rapoport <r...@linux.vnet.ibm.com>
---
Documentation/vm/ksm.rst | 51 --
Aside from the formatting:
* fixed typos
* added section and sub-section headers
* moved ksmd overview after the description of KSM origins
Signed-off-by: Mike Rapoport <r...@linux.vnet.ibm.com>
---
Documentation/vm/ksm.rst | 110 +--
1 file c
Signed-off-by: Mike Rapoport <r...@linux.vnet.ibm.com>
---
Documentation/admin-guide/mm/index.rst | 1 +
Documentation/admin-guide/mm/ksm.rst | 189 +
Documentation/vm/ksm.rst | 176 +-
3 files changed, 191 inse
The page_stable_node() and set_page_stable_node() are only used in mm/ksm.c
and there is no point to keep them in the include/linux/ksm.h
Signed-off-by: Mike Rapoport <r...@linux.vnet.ibm.com>
---
include/linux/ksm.h | 11 ---
mm/ksm.c| 12
2 files chang
The commit 9f32624be943538983e ("mm/rmap: use rmap_walk() in
page_referenced()") removed the declaration of page_referenced_ksm for the
case CONFIG_KSM=y, but left one for CONFIG_KSM=n.
Remove the unused leftover.
Signed-off-by: Mike Rapoport <r...@linux.vnet.ibm.com>
---
inc
Include the KSM description from the source code comment, add a subsection
about reverse mapping and include kernel-doc references for KSM data
structures.
Signed-off-by: Mike Rapoport <r...@linux.vnet.ibm.com>
---
Documentation/vm/ksm.rst | 39 +++
Hi,
While working on KSM docs, I've noticed some minor points which are
addressed by the below patches.
Mike Rapoport (2):
mm/ksm: remove unused page_referenced_ksm declaration
mm/ksm: move [set_]page_stable_node from ksm.h to ksm.c
include/linux/ksm.h | 17 -
mm/ksm.c
. The description of these implementation
details are moved to the new "Design" section.
The last patch in the series depends on the patchset that create
Documentation/admin-guide/mm [1], all the rest applies cleanly to the
current docs-next.
[1] https://lkml.org/lkml/2018/4/18/110
Mik
The existing comment provides a good overview of KSM implementation. Let's
update it to reflect recent additions of "chain" and "dup" variants of the
stable tree nodes and mark it as "DOC:" for inclusion into the KSM
documentation.
Signed-off-by: Mike Rapoport <
(added akpm)
On Thu, Mar 29, 2018 at 03:46:07PM -0600, Jonathan Corbet wrote:
> On Wed, 21 Mar 2018 21:22:16 +0200
> Mike Rapoport <r...@linux.vnet.ibm.com> wrote:
>
> > These patches convert files in Documentation/vm to ReST format, add an
> > initial index a
Signed-off-by: Mike Rapoport <r...@linux.vnet.ibm.com>
---
Documentation/vm/page_owner.txt | 34 +-
1 file changed, 21 insertions(+), 13 deletions(-)
diff --git a/Documentation/vm/page_owner.txt b/Documentation/vm/page_owner.txt
index 143..0ed5ab8
Signed-off-by: Mike Rapoport <r...@linux.vnet.ibm.com>
---
Documentation/vm/slub.txt | 357 --
1 file changed, 188 insertions(+), 169 deletions(-)
diff --git a/Documentation/vm/slub.txt b/Documentation/vm/slub.txt
index 8465241..3a775fd
Signed-off-by: Mike Rapoport <r...@linux.vnet.ibm.com>
---
Documentation/vm/pagemap.txt | 164 +++
1 file changed, 89 insertions(+), 75 deletions(-)
diff --git a/Documentation/vm/pagemap.txt b/Documentation/vm/pagemap.txt
index eafcefa..bd6d717
Signed-off-by: Mike Rapoport <r...@linux.vnet.ibm.com>
---
Documentation/vm/page_migration | 149 +---
1 file changed, 77 insertions(+), 72 deletions(-)
diff --git a/Documentation/vm/page_migration b/Documentation/vm/page_migration
index 0478ae2..0
Signed-off-by: Mike Rapoport <r...@linux.vnet.ibm.com>
---
Documentation/vm/page_frags | 5 -
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/Documentation/vm/page_frags b/Documentation/vm/page_frags
index a671456..637cc49 100644
--- a/Documentation/vm/page_frags
Signed-off-by: Mike Rapoport <r...@linux.vnet.ibm.com>
---
Documentation/vm/numa | 4
1 file changed, 4 insertions(+)
diff --git a/Documentation/vm/numa b/Documentation/vm/numa
index a31b85b..c81e7c5 100644
--- a/Documentation/vm/numa
+++ b/Documentation/vm/numa
@@ -1,6 +1,10 @@
+..
Signed-off-by: Mike Rapoport <r...@linux.vnet.ibm.com>
---
Documentation/vm/numa_memory_policy.txt | 533 +---
1 file changed, 283 insertions(+), 250 deletions(-)
diff --git a/Documentation/vm/numa_memory_policy.txt
b/Documentation/vm/numa_memory_policy.txt
Signed-off-by: Mike Rapoport <r...@linux.vnet.ibm.com>
---
Documentation/vm/overcommit-accounting | 107 ++---
1 file changed, 57 insertions(+), 50 deletions(-)
diff --git a/Documentation/vm/overcommit-accounting
b/Documentation/vm/overcommit-accounting
index c
Signed-off-by: Mike Rapoport <r...@linux.vnet.ibm.com>
---
Documentation/vm/mmu_notifier.txt | 108 --
1 file changed, 57 insertions(+), 51 deletions(-)
diff --git a/Documentation/vm/mmu_notifier.txt
b/Documentation/vm/mmu_notifier.txt
index 23b4625..4
401 - 500 of 2824 matches
Mail list logo