mm: softdirty: clear VM_SOFTDIRTY flag inside clear_refs_write() instead of clear_sof...
authorCyrill Gorcunov <gorcunov@openvz.org>
Wed, 4 Jun 2014 23:06:43 +0000 (16:06 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 4 Jun 2014 23:53:56 +0000 (16:53 -0700)
commitc86c97ff42cd6c6d1bd29eca4dfabeaf2b7f1020
tree2114b5deab734d4d8f62b612910f62f29e696a33
parentb43790eedd31e9535b89bbfa45793919e9504c34
mm: softdirty: clear VM_SOFTDIRTY flag inside clear_refs_write() instead of clear_soft_dirty()

clear_refs_write() is called earlier than clear_soft_dirty() and it is
more natural to clear VM_SOFTDIRTY (which belongs to VMA entry but not
PTEs) that early instead of clearing it a way deeper inside call chain.

Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
Cc: Pavel Emelyanov <xemul@parallels.com>
Cc: Hugh Dickins <hughd@google.com>
Cc: Naoya Horiguchi <n-horiguchi@ah.jp.nec.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/proc/task_mmu.c