Fix VM_MAYEXEC calculation
authorLinus Torvalds <torvalds@g5.osdl.org>
Sun, 15 Oct 2006 21:09:55 +0000 (14:09 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Sun, 15 Oct 2006 21:09:55 +0000 (14:09 -0700)
commit80c5606c3b45e0176c32d3108ade1e1cb0b954f3
tree441944cc1c2e47e2d34cabb5313c25e03f3284d3
parenta7a0d86f5aa40a2215e36fe21d7911cf718ba428
Fix VM_MAYEXEC calculation

.. and clean up the file mapping code while at it.  No point in having a
"if (file)" repeated twice, and generally doing similar checks in two
different sections of the same code

Signed-off-by: Linus Torvalds <torvalds@osdl.org>
mm/mmap.c