Files
android_kernel_samsung_msm8…/mm
Oleg Nesterov 37f5a2a3b0 mm: mmap_region: kill correct_wcount/inode, use allow_write_access()
correct_wcount and inode in mmap_region() just complicate the code.  This
boolean was needed previously, when deny_write_access() was called before
vma_merge(), now we can simply check VM_DENYWRITE and do
allow_write_access() if it is set.

allow_write_access() checks file != NULL, so this is safe even if it was
possible to use VM_DENYWRITE && !file.  Just we need to ensure we use the
same file which was deny_write_access()'ed, so the patch also moves "file
= vma->vm_file" down after allow_write_access().

Change-Id: I80d3674ce40fb97a80b128ea63edc86ca1770d20
Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Cc: Hugh Dickins <hughd@google.com>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: Colin Cross <ccross@android.com>
Cc: David Rientjes <rientjes@google.com>
Cc: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2020-09-23 17:35:56 +02:00
..
2012-01-03 22:54:56 -05:00
2020-09-23 17:32:06 +02:00
2011-07-26 16:49:47 -07:00
2019-08-05 14:20:47 +02:00
2019-08-23 13:20:00 +02:00
…
2020-09-23 17:32:06 +02:00
2019-08-08 12:09:23 +02:00
2019-08-23 13:20:00 +02:00
2019-08-05 14:20:47 +02:00
2019-08-05 14:20:47 +02:00
2020-09-23 17:29:09 +02:00
2019-08-08 12:26:41 +02:00
2019-08-06 08:16:29 +02:00
2019-08-06 08:17:38 +02:00