Konstantin Khlebnikov 4b6e1e3702 mm: kill vma flag VM_INSERTPAGE
Merge VM_INSERTPAGE into VM_MIXEDMAP.  VM_MIXEDMAP VMA can mix pure-pfn
ptes, special ptes and normal ptes.

Now copy_page_range() always copies VM_MIXEDMAP VMA on fork like
VM_PFNMAP.  If driver populates whole VMA at mmap() it probably not
expects page-faults.

This patch removes special check from vma_wants_writenotify() which
disables pages write tracking for VMA populated via vm_instert_page().
BDI below mapped file should not use dirty-accounting, moreover
do_wp_page() can handle this.

vm_insert_page() still marks vma after first usage.  Usually it is called
from f_op->mmap() handler under mm->mmap_sem write-lock, so it able to
change vma->vm_flags.  Caller must set VM_MIXEDMAP at mmap time if it
wants to call this function from other places, for example from page-fault
handler.

Signed-off-by: Konstantin Khlebnikov <khlebnikov@openvz.org>
Cc: Alexander Viro <viro@zeniv.linux.org.uk>
Cc: Carsten Otte <cotte@de.ibm.com>
Cc: Chris Metcalf <cmetcalf@tilera.com>
Cc: Cyrill Gorcunov <gorcunov@openvz.org>
Cc: Eric Paris <eparis@redhat.com>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Hugh Dickins <hughd@google.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: James Morris <james.l.morris@oracle.com>
Cc: Jason Baron <jbaron@redhat.com>
Cc: Kentaro Takeda <takedakn@nttdata.co.jp>
Cc: Matt Helsley <matthltc@us.ibm.com>
Cc: Nick Piggin <npiggin@kernel.dk>
Cc: Oleg Nesterov <oleg@redhat.com>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Robert Richter <robert.richter@amd.com>
Cc: Suresh Siddha <suresh.b.siddha@intel.com>
Cc: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Cc: Venkatesh Pallipadi <venki@google.com>
Acked-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2012-10-09 16:22:17 +09:00
..
2012-10-02 17:26:42 -07:00
2012-10-03 13:45:43 -07:00
2012-09-19 19:08:53 -06:00
2012-09-27 14:28:09 -03:00
2012-04-23 14:23:32 +03:00
2012-10-09 07:07:14 +09:00
2012-10-09 07:07:14 +09:00
2012-10-03 13:45:43 -07:00
2012-05-15 17:30:30 -04:00
2012-10-03 13:45:43 -07:00
2012-10-09 07:07:14 +09:00
2012-10-07 17:29:24 +09:00
2012-08-10 15:27:02 -04:00
2012-07-30 17:25:21 -07:00
2012-10-06 03:04:35 +09:00
2012-09-19 19:08:46 -06:00
2012-08-07 10:10:57 +02:00
2012-07-30 17:25:11 -07:00
2012-09-17 15:00:38 -07:00
2012-09-17 15:00:38 -07:00
2012-03-23 16:58:38 -07:00
2012-04-14 15:24:26 -04:00
2012-10-02 18:32:35 -07:00
2012-02-20 19:46:36 +11:00
2012-05-02 14:15:27 -05:00
2012-05-25 12:46:23 +05:30
2012-05-10 12:00:56 +02:00
2012-08-21 01:19:54 -07:00
2012-05-29 23:28:33 -04:00
2012-09-05 12:18:11 -07:00
2012-09-27 09:29:33 -04:00
2012-06-01 16:57:51 -07:00
2012-09-26 21:10:00 -04:00
2012-10-02 21:35:55 -04:00
2012-10-09 16:22:15 +09:00
2012-04-27 10:46:45 +08:00
2012-07-05 15:04:10 +02:00
2012-08-09 16:18:06 -07:00
2012-09-19 19:50:20 +02:00
2012-03-26 21:47:19 +02:00
2012-03-26 21:47:19 +02:00
2012-03-26 21:47:19 +02:00
2012-03-26 21:47:19 +02:00
2012-03-28 15:58:21 -07:00
2012-10-06 03:04:56 +09:00
2012-08-14 14:28:32 -07:00
2012-03-27 22:45:26 -04:00
2012-10-01 18:39:45 -04:00
2012-08-14 14:28:32 -07:00
2012-09-07 14:57:45 -04:00
2012-03-20 12:47:48 +01:00
2012-09-11 10:15:02 +02:00
2012-03-20 12:47:47 +01:00
2012-08-14 14:28:32 -07:00
2012-04-09 11:16:55 -07:00
2012-07-17 09:13:37 -07:00
2012-05-31 17:49:32 -07:00
2012-05-31 17:49:30 -07:00
2012-03-08 10:50:35 -08:00
2012-05-11 10:56:56 +01:00
2012-09-26 13:52:36 -07:00
2012-08-22 10:24:41 -04:00
2012-05-29 23:28:41 -04:00
2012-10-02 19:01:32 -07:00
2012-03-15 21:41:34 +01:00
2012-05-09 13:58:06 -07:00
2012-09-17 15:00:37 -07:00
2012-10-09 16:22:17 +09:00
2012-07-29 21:24:13 +04:00
2012-10-06 03:05:24 +09:00
2012-09-27 10:47:59 +02:00
2012-05-26 14:17:30 -04:00
2012-07-30 19:06:52 -04:00
2012-07-30 19:06:52 -04:00
2012-07-10 10:32:06 -05:00
2012-05-21 14:31:48 +01:00
2012-10-05 12:01:30 +09:00
2012-07-31 18:42:43 -07:00
2012-06-20 14:39:36 -07:00
2012-10-05 22:23:53 +02:00
2012-09-13 09:08:02 -06:00
2012-07-12 07:54:46 -07:00
2012-05-12 15:53:42 -04:00
2012-10-02 18:32:35 -07:00
2012-06-15 12:56:57 +02:00
2012-03-20 21:29:38 -04:00
2012-07-19 10:38:32 -04:00
2012-08-21 20:50:25 +02:00
2012-10-06 03:05:01 +09:00
2012-03-28 18:30:03 +01:00
2012-09-06 09:17:01 -07:00
2012-07-30 17:25:20 -07:00
2012-06-01 12:58:52 -04:00
2012-06-05 17:32:30 +02:00
2012-07-16 22:31:34 -07:00
2012-06-13 21:16:42 +02:00
2012-08-21 16:28:31 +02:00
2012-07-22 23:57:55 +04:00
2012-06-18 13:42:03 +02:00
2012-09-05 17:21:36 -07:00
2012-07-31 08:16:24 -06:00
2012-09-28 15:05:15 +09:30
2012-07-31 18:42:50 -07:00
2012-03-28 18:30:03 +01:00
2012-08-04 12:15:37 +04:00