Re: [PATCH v2] mm/mremap: Fail map duplication attempts for private mappings

2017-07-24 Thread Michal Hocko
On Fri 21-07-17 14:18:31, Mike Kravetz wrote: [...] > >From 5c4a1602bd6a942544ed011dc0a72fd258e874b2 Mon Sep 17 00:00:00 2001 > From: Mike Kravetz > Date: Wed, 12 Jul 2017 13:52:47 -0700 > Subject: [PATCH] mm/mremap: Fail map duplication attempts for private mappings > >

Re: [PATCH v2] mm/mremap: Fail map duplication attempts for private mappings

2017-07-24 Thread Michal Hocko
On Fri 21-07-17 14:18:31, Mike Kravetz wrote: [...] > >From 5c4a1602bd6a942544ed011dc0a72fd258e874b2 Mon Sep 17 00:00:00 2001 > From: Mike Kravetz > Date: Wed, 12 Jul 2017 13:52:47 -0700 > Subject: [PATCH] mm/mremap: Fail map duplication attempts for private mappings > > mremap will attempt to

Re: [PATCH v2] mm/mremap: Fail map duplication attempts for private mappings

2017-07-21 Thread Mike Kravetz
On 07/21/2017 07:36 AM, Michal Hocko wrote: > On Thu 20-07-17 13:37:59, Mike Kravetz wrote: >> mremap will create a 'duplicate' mapping if old_size == 0 is >> specified. Such duplicate mappings make no sense for private >> mappings. > > sorry for the nit picking but this is not true strictly

Re: [PATCH v2] mm/mremap: Fail map duplication attempts for private mappings

2017-07-21 Thread Mike Kravetz
On 07/21/2017 07:36 AM, Michal Hocko wrote: > On Thu 20-07-17 13:37:59, Mike Kravetz wrote: >> mremap will create a 'duplicate' mapping if old_size == 0 is >> specified. Such duplicate mappings make no sense for private >> mappings. > > sorry for the nit picking but this is not true strictly

Re: [PATCH v2] mm/mremap: Fail map duplication attempts for private mappings

2017-07-21 Thread Michal Hocko
On Thu 20-07-17 13:37:59, Mike Kravetz wrote: > mremap will create a 'duplicate' mapping if old_size == 0 is > specified. Such duplicate mappings make no sense for private > mappings. sorry for the nit picking but this is not true strictly speaking. It makes some sense, arguably (e.g. take an

Re: [PATCH v2] mm/mremap: Fail map duplication attempts for private mappings

2017-07-21 Thread Michal Hocko
On Thu 20-07-17 13:37:59, Mike Kravetz wrote: > mremap will create a 'duplicate' mapping if old_size == 0 is > specified. Such duplicate mappings make no sense for private > mappings. sorry for the nit picking but this is not true strictly speaking. It makes some sense, arguably (e.g. take an

[PATCH v2] mm/mremap: Fail map duplication attempts for private mappings

2017-07-20 Thread Mike Kravetz
mremap will create a 'duplicate' mapping if old_size == 0 is specified. Such duplicate mappings make no sense for private mappings. If duplication is attempted for a private mapping, mremap creates a separate private mapping unrelated to the original mapping and makes no modifications to the

[PATCH v2] mm/mremap: Fail map duplication attempts for private mappings

2017-07-20 Thread Mike Kravetz
mremap will create a 'duplicate' mapping if old_size == 0 is specified. Such duplicate mappings make no sense for private mappings. If duplication is attempted for a private mapping, mremap creates a separate private mapping unrelated to the original mapping and makes no modifications to the