mm: softdirty: don't forget to save file map softdiry bit on unmap
authorCyrill Gorcunov <[email protected]>
Wed, 4 Jun 2014 23:06:42 +0000 (16:06 -0700)
committerLinus Torvalds <[email protected]>
Wed, 4 Jun 2014 23:53:56 +0000 (16:53 -0700)
commitb43790eedd31e9535b89bbfa45793919e9504c34
tree0f4d6ec0924004f7fd924b2f248d9256af0807aa
parent0bf073315cb29d2e9e68b6c5da97862a519e3320
mm: softdirty: don't forget to save file map softdiry bit on unmap

pte_file_mksoft_dirty operates with argument passed by a value and
returns modified result thus we need to assign @ptfile here, otherwise
itis a no-op which may lead to loss of the softdirty bit.

Signed-off-by: Cyrill Gorcunov <[email protected]>
Cc: Pavel Emelyanov <[email protected]>
Cc: Hugh Dickins <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
mm/rmap.c