]> git.baikalelectronics.ru Git - kernel.git/commit
mm/memory.c: remove reduntant check for write access
authorAnshuman Khandual <khandual@linux.vnet.ibm.com>
Fri, 8 Sep 2017 23:12:45 +0000 (16:12 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 9 Sep 2017 01:26:47 +0000 (18:26 -0700)
commit53f73265f476a25e317a80a0481f36ac81a3a08c
treeecbd7594f122ccd61572430616863592ddc7ef28
parent9cf3537a429e2d1256c3ced9968b75cd9d620176
mm/memory.c: remove reduntant check for write access

Flags argument has been copied into vmf.flags and it is not changed in
between.  Hence a single write access check can be used for both PUD and
PMD.

Link: http://lkml.kernel.org/r/20170823082839.1812-1-khandual@linux.vnet.ibm.com
Signed-off-by: Anshuman Khandual <khandual@linux.vnet.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/memory.c