mm/memory.c: remove reduntant check for write access
authorAnshuman Khandual <[email protected]>
Fri, 8 Sep 2017 23:12:45 +0000 (16:12 -0700)
committerLinus Torvalds <[email protected]>
Sat, 9 Sep 2017 01:26:47 +0000 (18:26 -0700)
commitfde26bed588918a11831841b219f74b20b32b080
treeecbd7594f122ccd61572430616863592ddc7ef28
parent656710a60e3693911bee3a355d2f2bbae3faba33
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/[email protected]
Signed-off-by: Anshuman Khandual <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
mm/memory.c