Commit 207b0227 authored by Charan Teja Kalla's avatar Charan Teja Kalla Committed by Jhih-Chen Huang
Browse files

ANDROID: mm: madvise: Avoid counting swap entry references for migration entries



Race between the madvise(PAGEOUT) and migration caused by page offline
can make the swp_swapcount()->_swap_info_get emitting the "Bad swap file
entry " message because it is trying to get the info on the migration
entry. Add check if it is a migration entry.

Bug: 356032508
Bug: 357771059
Fixes: aee36dd5 ("ANDROID: mm: add vendor hooks in madvise for swap entry")
Change-Id: Ia209d2a0103ac506ceae8fd71f733c1dc85443a6
Signed-off-by: default avatarCharan Teja Kalla <quic_charante@quicinc.com>
Signed-off-by: default avatarNikhil V <quic_nprakash@quicinc.com>
(cherry picked from commit 7d0a1d6b)
parent f400dede
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment