aboutsummaryrefslogtreecommitdiffstats
path: root/mm/memcontrol.c
AgeCommit message (Expand)AuthorFilesLines
3 daysmemcg: multi objcg charge supportShakeel Butt1-58/+142
3 daysmemcg: int16_t for cached slab statsShakeel Butt1-13/+12
3 daysmemcg: uint16_t for nr_bytes in obj_stock_pcpShakeel Butt1-6/+19
3 daysmemcg: store node_id instead of pglist_data pointerShakeel Butt1-7/+19
3 daysmm/memcg: remove no longer used swap cgroup arrayKairui Song1-1/+0
3 daysmm/memcg, swap: store cgroup id in cluster table directlyKairui Song1-5/+8
3 daysmm, swap: delay and unify memcg lookup and charging for swapinKairui Song1-6/+4
3 daysmm/memcg, swap: tidy up cgroup v1 memsw swap helpersKairui Song1-5/+4
3 daysfooAndrew Morton1-3/+2
3 daysmm/memcontrol: hoist pstatc_pcpu assignment out of CPU loopHui Zhu1-3/+2
3 daysmemcg: use round-robin victim selection in refill_stockShakeel Butt1-1/+4
6 daysMerge tag 'mm-hotfixes-stable-2026-05-25-16-22' of git://git.kernel.org/pub/s...Linus Torvalds1-0/+6
9 daysMerge tag 'cgroup-for-7.1-rc4-fixes' of git://git.kernel.org/pub/scm/linux/ke...Linus Torvalds1-3/+3
10 daysmm: memcontrol: propagate NMI slab stats to memcg vmstatsAlexandre Ghiti1-0/+6
13 dayscgroup/rstat: validate cpu before css_rstat_cpu() accessQing Ming1-3/+3
2026-04-30mm: memcontrol: fix rcu unbalance in get_non_dying_memcg_end()Qi Zheng1-10/+19
2026-04-18mm: memcontrol: correct the nr_pages parameter type of mem_cgroup_update_lru_...Qi Zheng1-2/+2
2026-04-18mm: memcontrol: change val type to long in __mod_memcg_{lruvec_}state()Qi Zheng1-6/+12
2026-04-18mm: memcontrol: correct the type of stats_updates to unsigned longQi Zheng1-9/+9
2026-04-18mm: memcontrol: eliminate the problem of dying memory cgroup for LRU foliosMuchun Song1-77/+117
2026-04-18mm: memcontrol: convert objcg to be per-memcg per-node typeQi Zheng1-30/+62
2026-04-18mm: memcontrol: prepare for reparenting non-hierarchical statsQi Zheng1-0/+97
2026-04-18mm: memcontrol: refactor mod_memcg_state() and mod_memcg_lruvec_state()Qi Zheng1-19/+31
2026-04-18mm: memcontrol: refactor memcg_reparent_objcgs()Qi Zheng1-5/+24
2026-04-18mm: memcontrol: prepare for reparenting LRU pages for lruvec lockMuchun Song1-26/+27
2026-04-18mm: memcontrol: prevent memory cgroup release in mem_cgroup_swap_full()Muchun Song1-8/+10
2026-04-18writeback: prevent memory cgroup release in writeback moduleMuchun Song1-6/+8
2026-04-18mm: memcontrol: prevent memory cgroup release in get_mem_cgroup_from_folio()Muchun Song1-3/+7
2026-04-18mm: memcontrol: return root object cgroup for root memory cgroupMuchun Song1-21/+24
2026-04-18mm: memcontrol: allocate object cgroup for non-kmem caseMuchun Song1-27/+24
2026-04-18mm: memcontrol: remove dead code of checking parent memory cgroupMuchun Song1-5/+0
2026-04-05mm/memcontrol: fix reclaim_options leak in try_charge_memcg()Bing Jiao1-1/+2
2026-04-05mm: memcg: separate slab stat accounting from objcg charge cacheJohannes Weiner1-39/+61
2026-04-05mm: memcontrol: use __account_obj_stock() in the !locked pathJohannes Weiner1-1/+5
2026-04-05mm: memcontrol: split out __obj_cgroup_charge()Johannes Weiner1-5/+16
2026-04-05mm: memcg: simplify objcg charge size and stock remainder mathJohannes Weiner1-10/+6
2026-04-05mm: memcg: factor out trylock_stock() and unlock_stock()Johannes Weiner1-6/+19
2026-04-05folio_batch: rename pagevec.h to folio_batch.hTal Zussman1-1/+1
2026-04-05mm: memcontrol: switch to native NR_VMALLOC vmstat counterJohannes Weiner1-2/+2
2026-04-05mm: zswap: add per-memcg stat for incompressible pagesJiayuan Chen1-0/+6
2026-04-05memcg: consolidate private id refcount get/put helpersKairui Song1-22/+7
2026-04-05mm: move pgscan, pgsteal, pgrefill to node statsJP Kobryn (Meta)1-17/+39
2026-03-04memcg: fix slab accounting in refill_obj_stock() trylock pathHao Li1-1/+1
2026-02-21Convert 'alloc_obj' family to use the new default GFP_KERNEL argumentLinus Torvalds1-1/+1
2026-02-21treewide: Replace kmalloc with kmalloc_obj for non-scalar typesKees Cook1-3/+2
2026-02-18Merge tag 'mm-stable-2026-02-18-19-48' of git://git.kernel.org/pub/scm/linux/...Linus Torvalds1-2/+14
2026-02-12mm/vmscan: fix demotion targets checks in reclaim/demotionBing Jiao1-2/+14
2026-02-12Merge tag 'mm-stable-2026-02-11-19-22' of git://git.kernel.org/pub/scm/linux/...Linus Torvalds1-65/+34
2026-02-11Merge tag 'slab-for-7.0' of git://git.kernel.org/pub/scm/linux/kernel/git/vba...Linus Torvalds1-7/+24
2026-02-11Merge tag 'cgroup-for-6.20' of git://git.kernel.org/pub/scm/linux/kernel/git/...Linus Torvalds1-1/+1
2026-02-10Merge tag 'bpf-next-7.0' of git://git.kernel.org/pub/scm/linux/kernel/git/bpf...Linus Torvalds1-0/+16
2026-02-09Merge tag 'kthread-for-7.0' of git://git.kernel.org/pub/scm/linux/kernel/git/...Linus Torvalds1-4/+27
2026-02-04mm/memcontrol,alloc_tag: handle slabobj_ext access under KASAN poisonHarry Yoo1-2/+10
2026-02-04mm/slab: abstract slabobj_ext access via new slab_obj_ext() helperHarry Yoo1-7/+16
2026-02-03sched/isolation: Flush memcg workqueues on cpuset isolated partition changeFrederic Weisbecker1-1/+11
2026-02-03memcg: Prepare to protect against concurrent isolated cpuset changeFrederic Weisbecker1-4/+17
2026-01-31mm: replace use of system_unbound_wq with system_dfl_wqMarco Crivellari1-2/+2
2026-01-26memcg: rename mem_cgroup_ino() to mem_cgroup_id()Shakeel Butt1-2/+2
2026-01-26memcg: remove unused mem_cgroup_id() and mem_cgroup_from_id()Shakeel Butt1-5/+0
2026-01-26memcg: use cgroup_id() instead of cgroup_ino() for memcg IDShakeel Butt1-1/+1
2026-01-26memcg: mem_cgroup_get_from_ino() returns NULL on errorShakeel Butt1-4/+2
2026-01-26memcg: expose mem_cgroup_ino() and mem_cgroup_get_from_ino() unconditionallyShakeel Butt1-2/+0
2026-01-26memcg: introduce private id API for in-kernel usersShakeel Butt1-25/+30
2026-01-20mm: fix minor spelling mistakes in commentsKevin Lourenco1-1/+1
2026-01-20mm: memcontrol: rename mem_cgroup_from_slab_obj()Johannes Weiner1-2/+2
2026-01-20memcg: remove mem_cgroup_size()Chen Ridong1-5/+0
2026-01-20memcg: move mem_cgroup_usage memcontrol-v1.cChen Ridong1-22/+0
2026-01-14Merge git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf after rc5Alexei Starovoitov1-2/+2
2025-12-23mm: memcg: fix unit conversion for K() macro in OOM logShakeel Butt1-2/+2
2025-12-22mm: introduce BPF kfuncs to access memcg statistics and eventsRoman Gushchin1-0/+16
2025-12-08cgroup: switch to css_is_online() helperChen Ridong1-1/+1
2025-12-05Merge tag 'mm-stable-2025-12-03-21-26' of git://git.kernel.org/pub/scm/linux/...Linus Torvalds1-11/+59
2025-11-24memcg: remove __lruvec_stat_mod_folioShakeel Butt1-2/+2
2025-11-24memcg: remove __mod_lruvec_stateShakeel Butt1-4/+4
2025-11-24memcg: remove __mod_lruvec_kmem_stateShakeel Butt1-1/+1
2025-11-24memcg: use mod_node_page_state to update statsShakeel Butt1-3/+3
2025-11-24mm: thp: reparent the split queue during memcg offlineQi Zheng1-0/+1
2025-11-20mm: memcg: dump memcg protection info on oom or alloc failuresShakeel Butt1-0/+13
2025-11-16memcg: manually uninline __memcg_memory_eventShakeel Butt1-0/+31
2025-11-16memcg: net: track network throttling due to memcg memory pressureShakeel Butt1-0/+3
2025-11-16mm/zswap: fix typos: s/zwap/zswap/SeongJae Park1-1/+1
2025-11-13memcg: Convert mem_cgroup_from_obj_folio() to mem_cgroup_from_obj_slab()Matthew Wilcox (Oracle)1-24/+16
2025-10-07memcg: skip cgroup_file_notify if spinning is not allowedShakeel Butt1-3/+4
2025-10-02Merge tag 'mm-stable-2025-10-01-19-00' of git://git.kernel.org/pub/scm/linux/...Linus Torvalds1-5/+3
2025-09-21mm/hwpoison: decouple hwpoison_filter from mm/memory-failure.cMiaohe Lin1-0/+1
2025-09-13memcg: optimize exit to user spaceThomas Gleixner1-5/+2
2025-08-19net-memcg: Pass struct sock to mem_cgroup_sk_(un)?charge().Kuniyuki Iwashima1-7/+11
2025-08-19net-memcg: Introduce mem_cgroup_from_sk().Kuniyuki Iwashima1-4/+9
2025-08-19mptcp: Fix up subflow's memcg when CONFIG_SOCK_CGROUP_DATA=n.Kuniyuki Iwashima1-0/+13
2025-07-31Merge tag 'cgroup-for-6.17' of git://git.kernel.org/pub/scm/linux/kernel/git/...Linus Torvalds1-5/+5
2025-07-24memcg: convert memcg->socket_pressure to u64Kuniyuki Iwashima1-1/+4
2025-07-19mm/memcg: make memory.reclaim interface genericDavidlohr Bueso1-73/+4
2025-07-09Revert "sched/numa: add statistics of numa balance task"Chen Yu1-2/+0
2025-06-17memcg: cgroup: call css_rstat_updated irrespective of in_nmi()Shakeel Butt1-5/+5
2025-06-02Merge tag 'mm-stable-2025-06-01-14-06' of git://git.kernel.org/pub/scm/linux/...Linus Torvalds1-12/+115
2025-05-31sched/numa: add statistics of numa balance taskChen Yu1-0/+2
2025-05-31memcg: make memcg_rstat_updated nmi safeShakeel Butt1-7/+9
2025-05-31memcg: nmi-safe slab stats updatesShakeel Butt1-3/+33
2025-05-31memcg: add nmi-safe update for MEMCG_KMEMShakeel Butt1-2/+19
2025-05-31memcg: nmi safe memcg stats for specific archsShakeel Butt1-0/+49
2025-05-31memcg: disable kmem charging in nmi for unsupported archShakeel Butt1-0/+3
2025-05-31Merge tag 'mm-stable-2025-05-31-14-50' of git://git.kernel.org/pub/scm/linux/...Linus Torvalds1-279/+369
2025-05-27Merge tag 'cgroup-for-6.16' of git://git.kernel.org/pub/scm/linux/kernel/git/...Linus Torvalds1-2/+2
2025-05-25memcg: always call cond_resched() after fn()Breno Leitao1-4/+2
2025-05-22memcg: objcg stock trylock without irq disablingShakeel Butt1-10/+15
2025-05-22memcg: no stock lock for cpu hot-unplugShakeel Butt1-10/+1
2025-05-22memcg: make __mod_memcg_lruvec_state re-entrant safe against irqsShakeel Butt1-11/+11
2025-05-22memcg: make count_memcg_events re-entrant safe against irqsShakeel Butt1-3/+3
2025-05-22memcg: make mod_memcg_state re-entrant safe against irqsShakeel Butt1-4/+4
2025-05-22memcg: move preempt disable to callers of memcg_rstat_updatedShakeel Butt1-55/+19
2025-05-22memcg: memcg_rstat_updated re-entrant safe against irqsShakeel Butt1-11/+18
2025-05-13memcg: no irq disable for memcg stock lockShakeel Butt1-9/+6
2025-05-13memcg: completely decouple memcg and obj stocksShakeel Butt1-57/+92
2025-05-13memcg: separate local_trylock for memcg and objShakeel Butt1-23/+26
2025-05-13memcg: simplify consume_stockShakeel Butt1-13/+7
2025-05-12mm: add swappiness=max arg to memory.reclaim for only anon reclaimZhongkun He1-0/+5
2025-05-12memcg: introduce non-blocking limit setting optionShakeel Butt1-2/+8
2025-05-12mm/memcg: use kmem_cache when alloc memcg pernode infoHuan Yang1-1/+6
2025-05-12mm/memcg: use kmem_cache when alloc memcgHuan Yang1-1/+8
2025-05-12mm/memcg: move mem_cgroup_init() ahead of cgroup_init()Huan Yang1-3/+2
2025-05-12vmscan,cgroup: apply mems_effective to reclaimGregory Price1-0/+6
2025-05-11memcg: multi-memcg percpu charge cacheShakeel Butt1-38/+106
2025-05-11memcg: optimize memcg_rstat_updatedShakeel Butt1-7/+9
2025-05-11memcg: manually inline replace_stock_objcgShakeel Butt1-12/+6
2025-05-11memcg: combine slab obj stock charging and accountingVlastimil Babka1-31/+46
2025-05-11memcg: use __mod_memcg_state in drain_obj_stockShakeel Butt1-1/+3
2025-05-11memcg: do obj_cgroup_put inside drain_obj_stockShakeel Butt1-26/+11
2025-05-11memcg: no refilling stock from obj_cgroup_releaseShakeel Butt1-4/+11
2025-05-11memcg: manually inline __refill_stockShakeel Butt1-21/+13
2025-05-11memcg: introduce memcg_unchargeShakeel Butt1-16/+12
2025-05-11memcg: decouple drain_obj_stock from local stockShakeel Butt1-1/+6
2025-05-11memcg: remove root memcg check from refill_stockShakeel Butt1-2/+2
2025-05-11memcg, oom: do not bypass oom killer for dying tasksMichal Hocko1-1/+1
2025-04-11locking/local_lock, mm: replace localtry_ helpers with local_trylock_t typeAlexei Starovoitov1-20/+19
2025-04-04cgroup: change rstat function signatures from cgroup-based to css-basedJP Kobryn1-2/+2
2025-04-01Merge tag 'mm-stable-2025-03-30-16-52' of git://git.kernel.org/pub/scm/linux/...Linus Torvalds1-164/+130
2025-03-30Merge tag 'bpf_try_alloc_pages' of git://git.kernel.org/pub/scm/linux/kernel/...Linus Torvalds1-18/+39
2025-03-21mm: vmscan: split proactive reclaim statistics from direct reclaim statisticsHao Jia1-0/+7
2025-03-21mm: remove references to folio in __memcg_kmem_uncharge_page()Matthew Wilcox (Oracle)1-5/+3
2025-03-21mm: remove references to folio in split_page_memcg()Matthew Wilcox (Oracle)1-7/+23
2025-03-21mm: simplify split_page_memcg()Matthew Wilcox (Oracle)1-8/+7
2025-03-21mm: separate folio_split_memcg_refs() from split_page_memcg()Matthew Wilcox (Oracle)1-4/+13
2025-03-21memcg: avoid refill_stock for root memcgShakeel Butt1-1/+2
2025-03-17memcg: bypass root memcg check for skmem chargingShakeel Butt1-1/+1
2025-03-17page_counter: track failcnt only for legacy cgroupsShakeel Butt1-2/+10
2025-03-17memcg: don't call propagate_protected_usage() for v1Shakeel Butt1-2/+3
2025-03-16mm: memcontrol: move memsw charge callbacks to v1Johannes Weiner1-110/+19
2025-03-16mm: memcontrol: unshare v2-only charge API bits againJohannes Weiner1-4/+13
2025-03-16memcg: add CONFIG_MEMCG_V1 for 'local' functionsChen Ridong1-0/+6
2025-03-16memcg: factor out the replace_stock_objcg functionChen Ridong1-10/+16
2025-03-16memcg: call the free function when allocation of pn failsChen Ridong1-15/+12
2025-03-16memcg: use OFP_PEAK_UNSET instead of -1Chen Ridong1-1/+1
2025-03-16memcg: drain obj stock on cpu hotplug teardownShakeel Butt1-0/+9
2025-03-16mm: memcontrol: fix swap counter leak from offline cgroupMuchun Song1-2/+2
2025-02-27memcg: Use trylock to access memcg stock_lock.Alexei Starovoitov1-16/+37
2025-02-17memcg: avoid dead loop when setting memory.maxChen Ridong1-0/+1
2025-01-25memcg: fix soft lockup in the OOM processChen Ridong1-1/+6
2025-01-25mm/swap_cgroup: decouple swap cgroup recording and clearingKairui Song1-8/+5
2025-01-25mm, memcontrol: avoid duplicated memcg enable checkKairui Song1-1/+1
2025-01-13memcg/hugetlb: remove memcg hugetlb try-commit-cancel protocolJoshua Hahn1-62/+3
2025-01-13memcg/hugetlb: introduce mem_cgroup_charge_hugetlbJoshua Hahn1-0/+34
2025-01-13memcg/hugetlb: introduce memcg_accounts_hugetlbJoshua Hahn1-3/+14
2024-11-14memcg/hugetlb: add hugeTLB counters to memcgJoshua Hahn1-0/+11
2024-11-11mm/list_lru: split the lock to per-cgroup scopeKairui Song1-1/+6
2024-11-11mm/list_lru: code clean up for reparentingKairui Song1-7/+0
2024-11-11memcg: add flush tracepointJP Kobryn1-1/+6
2024-11-11memcg: rename do_flush_stats and add force flagJP Kobryn1-9/+8
2024-11-11Merge branch 'mm-hotfixes-stable' into mm-stableAndrew Morton1-0/+4
2024-11-11mm: count zeromap read and set for swapout and swapinBarry Song1-0/+4
2024-11-07memcg: factor out mem_cgroup_stat_aggregate()Xiu Jianfeng1-58/+69
2024-11-06memcg-v1: remove memcg move locking codeShakeel Butt1-5/+0
2024-11-06memcg-v1: remove charge move codeShakeel Butt1-9/+0
2024-11-06mm/memcontrol: fix seq_buf size to save memory when PAGE_SIZE is largeRyan Roberts1-4/+5
2024-11-06memcg: add tracing for memcg stat updatesShakeel Butt1-2/+11
2024-11-05mm/memcontrol: add per-memcg pgpgin/pswpin counterJingxiang Zeng1-0/+2
2024-11-05mm/thp: fix deferred split unqueue naming and lockingHugh Dickins1-3/+5
2024-11-05mm/thp: fix deferred split queue not partially_mappedHugh Dickins1-2/+1
2024-09-21Merge tag 'mm-stable-2024-09-20-02-31' of git://git.kernel.org/pub/scm/linux/...Linus Torvalds1-234/+256
2024-09-17mm: add nr argument in mem_cgroup_swapin_uncharge_swap() helper to support la...Barry Song1-3/+4
2024-09-09mm: clean up mem_cgroup_iter()Kinsey Ho1-20/+12
2024-09-09mm: restart if multiple traversals racedKinsey Ho1-9/+17
2024-09-09mm: increment gen # before restarting traversalKinsey Ho1-10/+12
2024-09-09mm: don't hold css->refcnt during traversalKinsey Ho1-17/+1
2024-09-09mm: introduce a pageflag for partially mapped foliosUsama Arif1-1/+2
2024-09-03mm,memcg: provide per-cgroup counters for NUMA balancing operationsKaiyang Zhao1-0/+45
2024-09-01memcg: make PGPGIN and PGPGOUT v1 onlyShakeel Butt1-1/+4
2024-09-01memcg: move v1 events and statistics code to v1 fileShakeel Butt1-29/+4
2024-09-01memcg: move mem_cgroup_charge_statistics to v1 codeShakeel Butt1-16/+3
2024-09-01memcg: move mem_cgroup_event_ratelimit to v1 codeShakeel Butt1-28/+0
2024-09-01memcg: move v1 only percpu stats in separate structShakeel Butt1-9/+9
2024-09-01mm: kmem: add lockdep assertion to obj_cgroup_memcgMuchun Song1-6/+5
2024-09-01memcg: replace memcg ID idr with xarrayShakeel Butt1-29/+10
2024-09-01mm, memcg: cg2 memory{.swap,}.peak write handlersDavid Finkel1-10/+106
2024-09-01mm: memcg: don't call propagate_protected_usage() needlesslyRoman Gushchin1-8/+8
2024-09-01memcg: increase the valid index range for memcg statsShakeel Butt1-22/+28
2024-09-01mm: kmem: remove mem_cgroup_from_obj()Muchun Song1-31/+1
2024-09-01mm/memcontrol: respect zswap.writeback setting from parent cg tooMike Yuan1-3/+9
2024-08-07memcg: protect concurrent access to mem_cgroup_idrShakeel Butt1-2/+20
2024-07-12mm/page_counter: move calculating protection values to page_counterMaarten Lankhorst1-151/+3
2024-07-10mm: remove CONFIG_MEMCG_KMEMJohannes Weiner1-54/+6