mbox series

[v2,0/2] memcg_kmem hooks refactoring

Message ID 20240325-slab-memcg-v2-0-900a458233a6@suse.cz (mailing list archive)
Headers show
Series memcg_kmem hooks refactoring | expand

Message

Vlastimil Babka March 25, 2024, 8:20 a.m. UTC
Hi,

this is v2 of the memcg_kmem hooks refactoring (RFC/v1 link at the end).
This just rebases the refactoring patches 1 and 2 so they can start to
be exposed to -next and other work on can base on that.  I'm not
including the kmem_cache_charge() patch here until we have a more
finished user than my previous unfinished attempt.

Vlastimil

Signed-off-by: Vlastimil Babka <vbabka@suse.cz>
---
Changes in v2:
- rebase to v6.9-rc1
- add reviewed-by's to patches 1+2
- drop patches 3+4 (kmem_cache_charge() and usage in vfs)
- Link to v1: https://lore.kernel.org/r/20240301-slab-memcg-v1-0-359328a46596@suse.cz

---
Vlastimil Babka (2):
      mm, slab: move memcg charging to post-alloc hook
      mm, slab: move slab_memcg hooks to mm/memcontrol.c

 mm/memcontrol.c |  90 +++++++++++++++++++++++++
 mm/slab.h       |  10 +++
 mm/slub.c       | 202 +++++++++++---------------------------------------------
 3 files changed, 138 insertions(+), 164 deletions(-)
---
base-commit: 4cece764965020c22cff7665b18a012006359095
change-id: 20240229-slab-memcg-ae6b3789c924

Best regards,