login
Header Space

 
 

Re: MAP_POPULATE behavior change?

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Nick Piggin <npiggin@...>
Cc: lkml <linux-kernel@...>, mk <michael.kerrisk@...>
Date: Monday, May 5, 2008 - 8:42 am

Hi Nick,

On Mon, May 5, 2008 at 2:23 PM, Nick Piggin <npiggin@suse.de> wrote:


Umm -- did it not work for anonymous *shared* mappings before?  I
understood that it did.


Hmm -- going back and re-reading the code, there is:

        if ((flags & MAP_POPULATE) && !(flags & MAP_NONBLOCK))
                make_pages_present(addr, addr + len);

That means that MAP_NONBLOCK makes *MAP_POPULATE* a no-op.  Was that intended?

Cheers,

Michael




-- 
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Found a bug? http://www.kernel.org/doc/man-pages/reporting_bugs.html
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: MAP_POPULATE behavior change?, Michael Kerrisk, (Mon Apr 28, 8:07 am)
Re: MAP_POPULATE behavior change?, Nick Piggin, (Mon May 5, 8:23 am)
Re: MAP_POPULATE behavior change?, Michael Kerrisk, (Mon May 5, 8:42 am)
Re: MAP_POPULATE behavior change?, Nick Piggin, (Mon May 5, 8:54 am)
Re: MAP_POPULATE behavior change?, Michael Kerrisk, (Mon May 5, 11:27 am)
speck-geostationary