From: Michal Hocko Date: Wed, 24 Jun 2015 23:57:50 +0000 (-0700) Subject: Documentation/vm/unevictable-lru.txt: clarify MAP_LOCKED behavior X-Git-Tag: omap-for-v4.2/fixes-rc1^2~125^2~22 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9b012a29a300ea780d919205906d00d15cc6286e;p=pandora-kernel.git 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 Reported-by: David Rientjes Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed