]> git.baikalelectronics.ru Git - kernel.git/commit
Documentation/vm/unevictable-lru.txt: clarify MAP_LOCKED behavior
authorMichal Hocko <mhocko@suse.cz>
Wed, 24 Jun 2015 23:57:50 +0000 (16:57 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 25 Jun 2015 00:49:44 +0000 (17:49 -0700)
commit1a98429b5ac1832659cb4e9e3dea70332193f566
treebfeef7ea3414bab1035fb8bbfd08c3d7b368139d
parentb081e6ed590f77243088f3cd4683ab91078b934e
Documentation/vm/unevictable-lru.txt: clarify MAP_LOCKED behavior

There is a very subtle difference between mmap()+mlock() vs
mmap(MAP_LOCKED) semantic.  The former one fails if the population of the
area fails while the later one doesn't.  This basically means that
mmap(MAPLOCKED) areas might see major fault after mmap syscall returns
which is not the case for mlock.  mmap man page has already been altered
but Documentation/vm/unevictable-lru.txt deserves a clarification as well.

Signed-off-by: Michal Hocko <mhocko@suse.cz>
Reported-by: David Rientjes <rientjes@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Documentation/vm/unevictable-lru.txt