]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm/mmap: clarify protection_map[] indices
authorAnshuman Khandual <anshuman.khandual@arm.com>
Thu, 14 Apr 2022 06:07:06 +0000 (23:07 -0700)
committerakpm <akpm@linux-foundation.org>
Thu, 14 Apr 2022 06:07:06 +0000 (23:07 -0700)
commit14c65323203eed5eb93c97f9ce3be112db8c88b3
tree56a252478b3445780cd6fa4acdd520e870b89db6
parent0c3ce61fe995ad3b60b5d395c0ddd2d876886ab9
mm/mmap: clarify protection_map[] indices

protection_map[] maps vm_flags access combinations into page protection
value as defined by the platform via __PXXX and __SXXX macros.  The array
indices in protection_map[], represents vm_flags access combinations but
it's not very intuitive to derive.  This makes it clear and explicit.

Link: https://lkml.kernel.org/r/20220404031840.588321-3-anshuman.khandual@arm.com
Signed-off-by: Anshuman Khandual <anshuman.khandual@arm.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/mmap.c