diff options
author | Hugh Dickins | 2019-04-19 02:49:58 +0200 |
---|---|---|
committer | Linus Torvalds | 2019-04-19 18:46:04 +0200 |
commit | 87039546544479d4bedb19d0ea525270c43c1c9b (patch) | |
tree | 0520eeb66e4c3d8fa9e80f7b0b42fbaa4f8fd90b /mm/swapfile.c | |
parent | slab: store tagged freelist for off-slab slabmgmt (diff) | |
download | kernel-qcow2-linux-87039546544479d4bedb19d0ea525270c43c1c9b.tar.gz kernel-qcow2-linux-87039546544479d4bedb19d0ea525270c43c1c9b.tar.xz kernel-qcow2-linux-87039546544479d4bedb19d0ea525270c43c1c9b.zip |
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/alpine.LSU.2.11.1904081254470.1523@eggly.anvils
Fixes: b56a2d8af914 ("mm: rid swapoff of quadratic complexity")
Signed-off-by: Hugh Dickins <hughd@google.com>
Cc: Konstantin Khlebnikov <khlebnikov@yandex-team.ru>
Cc: "Alex Xu (Hello71)" <alex_y_xu@yahoo.ca>
Cc: Vineeth Pillai <vpillai@digitalocean.com>
Cc: Kelley Nielsen <kelleynnn@gmail.com>
Cc: Rik van Riel <riel@surriel.com>
Cc: Huang Ying <ying.huang@intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/swapfile.c')
0 files changed, 0 insertions, 0 deletions