On Mon, 10 May 2010, KAMEZAWA Hiroyuki wrote: > > Hmm. vm_flags is still 32bit..(I think it should be long long) > > Using combination of existing flags... > > #define VM_STACK_INCOMPLETE_SETUP (VM_RAND_READ | VM_SEC_READ) > > Can be used instead of checking mapcount, I think. Ahh, yes. We can also do things like not having VM_MAY_READ/WRITE set. That's impossible on a real mapping - even if it's not readable, it is always something you could mprotect to _be_ readable. The point being, we can make the tests more explicit, and less "magic that happens to work". As long as it's ok to just say "don't migrate pages in this mapping yet, because we're still setting it up". Linus -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@xxxxxxxxxx For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"dont@xxxxxxxxx"> email@xxxxxxxxx </a>