Revision 64165b1affc5bc16231ac971e66aae7d68d57f2c authored by Hugh Dickins on 19 April 2019, 00:50:09 UTC, committed by Linus Torvalds on 19 April 2019, 16:46:04 UTC
The old try_to_unuse() implementation was driven by find_next_to_unuse(), which terminated as soon as all the swap had been freed. Add inuse_pages checks now (alongside signal_pending()) to stop scanning mms and swap_map once finished. The same ought to be done in shmem_unuse() too, but never was before, and needs a different interface: so leave it as is for now. Link: http://lkml.kernel.org/r/alpine.LSU.2.11.1904081258200.1523@eggly.anvils Fixes: b56a2d8af914 ("mm: rid swapoff of quadratic complexity") Signed-off-by: Hugh Dickins <hughd@google.com> Cc: "Alex Xu (Hello71)" <alex_y_xu@yahoo.ca> Cc: Huang Ying <ying.huang@intel.com> Cc: Kelley Nielsen <kelleynnn@gmail.com> Cc: Konstantin Khlebnikov <khlebnikov@yandex-team.ru> Cc: Rik van Riel <riel@surriel.com> Cc: Vineeth Pillai <vpillai@digitalocean.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent dd862de
File | Mode | Size |
---|---|---|
Kconfig | -rw-r--r-- | 511 bytes |
Makefile | -rw-r--r-- | 365 bytes |
attributes.c | -rw-r--r-- | 8.5 KB |
bfind.c | -rw-r--r-- | 6.1 KB |
bitmap.c | -rw-r--r-- | 5.0 KB |
bnode.c | -rw-r--r-- | 15.3 KB |
brec.c | -rw-r--r-- | 13.6 KB |
btree.c | -rw-r--r-- | 12.2 KB |
catalog.c | -rw-r--r-- | 14.1 KB |
dir.c | -rw-r--r-- | 13.8 KB |
extents.c | -rw-r--r-- | 15.5 KB |
hfsplus_fs.h | -rw-r--r-- | 16.3 KB |
hfsplus_raw.h | -rw-r--r-- | 9.5 KB |
inode.c | -rw-r--r-- | 17.2 KB |
ioctl.c | -rw-r--r-- | 3.6 KB |
options.c | -rw-r--r-- | 5.3 KB |
part_tbl.c | -rw-r--r-- | 4.2 KB |
super.c | -rw-r--r-- | 18.0 KB |
tables.c | -rw-r--r-- | 119.1 KB |
unicode.c | -rw-r--r-- | 10.5 KB |
wrapper.c | -rw-r--r-- | 7.0 KB |
xattr.c | -rw-r--r-- | 23.3 KB |
xattr.h | -rw-r--r-- | 1.2 KB |
xattr_security.c | -rw-r--r-- | 2.0 KB |
xattr_trusted.c | -rw-r--r-- | 1017 bytes |
xattr_user.c | -rw-r--r-- | 963 bytes |
Computing file changes ...