diff options
author | Hugh Dickins <[email protected]> | 2019-04-18 17:49:58 -0700 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2019-04-19 09:46:04 -0700 |
commit | 87039546544479d4bedb19d0ea525270c43c1c9b (patch) | |
tree | 0520eeb66e4c3d8fa9e80f7b0b42fbaa4f8fd90b /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 1a62b18d51e5c5ecc0345c85bb9fef870ab721ed (diff) |
mm: swapoff: shmem_find_swap_entries() filter out other types
Swapfile "type" was passed all the way down to shmem_unuse_inode(), but
then forgotten from shmem_find_swap_entries(): with the result that
removing one swapfile would try to free up all the swap from shmem - no
problem when only one swapfile anyway, but counter-productive when more,
causing swapoff to be unnecessarily OOM-killed when it should succeed.
Link: http://lkml.kernel.org/r/[email protected]
Fixes: b56a2d8af914 ("mm: rid swapoff of quadratic complexity")
Signed-off-by: Hugh Dickins <[email protected]>
Cc: Konstantin Khlebnikov <[email protected]>
Cc: "Alex Xu (Hello71)" <[email protected]>
Cc: Vineeth Pillai <[email protected]>
Cc: Kelley Nielsen <[email protected]>
Cc: Rik van Riel <[email protected]>
Cc: Huang Ying <[email protected]>
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