]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
mm: introduce memalloc_flags_{save,restore}
authorKent Overstreet <kent.overstreet@linux.dev>
Fri, 26 Jan 2024 00:00:24 +0000 (19:00 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 10 Mar 2024 19:34:09 +0000 (15:34 -0400)
commit3f6d5e6a468d02676244b868b210433831846127
tree669b0f46a40b16eb3e3de7bab19cf0f1fdf5f90c
parent3d4998c202978e5389b660cdfa33299d531b3f4f
mm: introduce memalloc_flags_{save,restore}

Our proliferation of memalloc_*_{save,restore} APIs is getting a bit
silly, this adds a generic version and converts the existing
save/restore functions to wrappers.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Cc: Vlastimil Babka <vbabka@suse.cz>
Cc: Matthew Wilcox <willy@infradead.org>
Cc: Michal Hocko <mhocko@kernel.org>
Cc: Darrick J. Wong <djwong@kernel.org>
Cc: linux-mm@kvack.org
Acked-by: Vlastimil Babka <vbabka@suse.cz>
include/linux/sched/mm.h