Skip to content

few mm helpers for bcachefs

Kent Overstreet linux-mm 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3mm: introduce memalloc_flags_{save,restore}include/linux/sched/mm.h+26 -171 reply
2/3mm: introduce PF_MEMALLOC_NORECLAIM, PF_MEMALLOC_NOWARNinclude/linux/sched.h include/linux/sched/mm.h+15 -63 replies
3/3mempool: kvmalloc poolinclude/linux/mempool.h mm/mempool.c+26 -00 replies

Reviews trailers per patch

1 of 3 patches has a Reviewed-by or Acked-by.

PatchVlastimil Babka
1/3A-b
2/3
3/3

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/3] few mm helpers for bcachefs

memalloc_flags_{save,restore} - cleanup of the existing duplication in our memalloc_*_{save,restore} functions

PF_MEMALLOC_NORECLAIM, PF_MEMALLOC_NOWARN: we've been talking about getting away from gfp flags for years, but we've been lacking some PF_MEMALLOC_* equivalents that we need to make that happen - this adds some of the missing ones.

they're needed for calling alloc_inode() in bcachefs with btree locks held (so that we can make lookup() properly transactional), since it doesn't take a gfp flags param and adding it would require changing methods in every fs.

Kent Overstreet (3):
mm: introduce memalloc_flags_{save,restore}
mm: introduce PF_MEMALLOC_NORECLAIM, PF_MEMALLOC_NOWARN
mempool: kvmalloc pool

 include/linux/mempool.h  | 13 +++++++++
 include/linux/sched.h    |  4 +--
 include/linux/sched/mm.h | 60 ++++++++++++++++++++++++++--------------
 mm/mempool.c             | 13 +++++++++
 4 files changed, 67 insertions(+), 23 deletions(-)
Signature · 1 line
2.43.0