]> www.infradead.org Git - users/willy/linux.git/commit
mm: Add become_kswapd and restore_kswapd
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Fri, 27 Mar 2020 16:57:58 +0000 (12:57 -0400)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Wed, 24 Jun 2020 16:57:30 +0000 (12:57 -0400)
commit5b7d74198146ec7045665d647a45bd0e3c549c5d
tree54bdbe1823b56e4525e2110be4f7ca846bf7058d
parent1b03b863af9406b89c08d998ab703ab942b4d5a5
mm: Add become_kswapd and restore_kswapd

Since XFS needs to pretend to be kswapd in some of its worker threads,
create methods to save & restore kswapd state.  Don't bother restoring
kswapd state in kswapd -- the only time we reach this code is when we're
exiting and the task_struct is about to be destroyed anyway.

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
fs/xfs/libxfs/xfs_btree.c
include/linux/sched/mm.h
mm/vmscan.c