[PATCH 2/2] mm/vma: Introduce VM_ACCESS_FLAGS

Vlastimil Babka vbabka at suse.cz
Thu Mar 5 23:11:46 AEDT 2020


On 3/5/20 7:50 AM, Anshuman Khandual wrote:
> There are many places where all basic VMA access flags (read, write, exec)
> are initialized or checked against as a group. One such example is during
> page fault. Existing vma_is_accessible() wrapper already creates the notion
> of VMA accessibility as a group access permissions. Hence lets just create
> VM_ACCESS_FLAGS (VM_READ|VM_WRITE|VM_EXEC) which will not only reduce code
> duplication but also extend the VMA accessibility concept in general.
> 
> Cc: Russell King <linux at armlinux.org.uk>
> CC: Catalin Marinas <catalin.marinas at arm.com>
> CC: Mark Salter <msalter at redhat.com>
> Cc: Nick Hu <nickhu at andestech.com>
> CC: Ley Foon Tan <ley.foon.tan at intel.com>
> Cc: Michael Ellerman <mpe at ellerman.id.au>
> Cc: Heiko Carstens <heiko.carstens at de.ibm.com>
> Cc: Yoshinori Sato <ysato at users.sourceforge.jp>
> Cc: Guan Xuetao <gxt at pku.edu.cn>
> Cc: Dave Hansen <dave.hansen at linux.intel.com>
> Cc: Thomas Gleixner <tglx at linutronix.de>
> Cc: Rob Springer <rspringer at google.com>
> Cc: Greg Kroah-Hartman <gregkh at linuxfoundation.org>
> Cc: Andrew Morton <akpm at linux-foundation.org>
> Cc: linux-arm-kernel at lists.infradead.org
> Cc: linuxppc-dev at lists.ozlabs.org
> Cc: linux-s390 at vger.kernel.org
> Cc: devel at driverdev.osuosl.org
> Cc: linux-mm at kvack.org
> Cc: linux-kernel at vger.kernel.org
> Signed-off-by: Anshuman Khandual <anshuman.khandual at arm.com>

Reviewed-by: Vlastimil Babka <vbabka at suse.cz>

Thanks.


More information about the Linuxppc-dev mailing list