aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorYu Zhao <[email protected]>2018-11-30 14:09:03 -0800
committerLinus Torvalds <[email protected]>2018-11-30 14:56:14 -0800
commitc1cb20d43728aa9b5393bd8d489bc85c142949b2 (patch)
tree2e74ac8f7422adb7e178d41b64d5b48bbc6f37a4 /tools/perf/scripts/python/export-to-postgresql.py
parent6ff38bd40230af35e446239396e5fc8ebd6a5248 (diff)
mm: use swp_offset as key in shmem_replace_page()
We changed the key of swap cache tree from swp_entry_t.val to swp_offset. We need to do so in shmem_replace_page() as well. Hugh said: "shmem_replace_page() has been wrong since the day I wrote it: good enough to work on swap "type" 0, which is all most people ever use (especially those few who need shmem_replace_page() at all), but broken once there are any non-0 swp_type bits set in the higher order bits" Link: http://lkml.kernel.org/r/[email protected] Fixes: f6ab1f7f6b2d ("mm, swap: use offset of swap entry as key of swap cache") Signed-off-by: Yu Zhao <[email protected]> Reviewed-by: Matthew Wilcox <[email protected]> Acked-by: Hugh Dickins <[email protected]> Cc: <[email protected]> [4.9+] Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions