diff options
author | Michel Lespinasse <[email protected]> | 2011-02-10 15:01:33 -0800 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2011-02-11 16:12:20 -0800 |
commit | 419d8c96dbfa558f00e623023917d0a5afc46129 (patch) | |
tree | 74882b1ed7340d3d0e448b343c52fd12969ea518 /drivers/scsi/mpt2sas/mpi/mpi2_raid.h | |
parent | e15f8c01af924e611bc7be1e45449c4a74e5dfdd (diff) |
mlock: do not munlock pages in __do_fault()
If the page is going to be written to, __do_page needs to break COW.
However, the old page (before breaking COW) was never mapped mapped into
the current pte (__do_fault is only called when the pte is not present),
so vmscan can't have marked the old page as PageMlocked due to being
mapped in __do_fault's VMA. Therefore, __do_fault() does not need to
worry about clearing PageMlocked() on the old page.
Signed-off-by: Michel Lespinasse <[email protected]>
Reviewed-by: KAMEZAWA Hiroyuki <[email protected]>
Acked-by: Hugh Dickins <[email protected]>
Cc: Rik van Riel <[email protected]>
Cc: Andrea Arcangeli <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'drivers/scsi/mpt2sas/mpi/mpi2_raid.h')
0 files changed, 0 insertions, 0 deletions