summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorVinayak Menon <vinmenon@codeaurora.org>2014-11-17 20:26:19 +0530
committerDavid Keitel <dkeitel@codeaurora.org>2016-03-22 11:03:35 -0700
commit90863369e59974baea295460fb48ae41b8e1c5f5 (patch)
tree0a6f79812b7056ea24b28496bac04c89ecba3202 /include/linux
parent6999257f3c6a2b6246ceb1288b6d4700d5683ab9 (diff)
mm: vmscan: lock page on swap error in pageout
A workaround was added ealier to move a page to active list if swapping to devices like zram fails. But this can result in try_to_free_swap being called from shrink_page_list, without a properly locked page. Lock the page when we indicate to activate a page in pageout(). Add a check to ensure that error is on swap, and clear the error flag before moving the page to active list. CRs-fixed: 760049 Change-Id: I77a8bbd6ed13efdec943298fe9448412feeac176 Signed-off-by: Vinayak Menon <vinmenon@codeaurora.org>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions