aboutsummaryrefslogtreecommitdiffstats
path: root/mm/memcontrol.c
AgeCommit message (Expand)AuthorFilesLines
2022-05-19zswap: memcg accountingJohannes Weiner1-8/+197
2022-05-13mm/memcontrol: export memcg->watermark via sysfs for v2 memcgGanesan Rajagopal1-0/+13
2022-05-13swap: turn get_swap_page() into folio_alloc_swap()Matthew Wilcox (Oracle)1-8/+8
2022-05-13mm: teach core mm about pte markersPeter Xu1-2/+6
2022-05-09mm: create new mm/swap.h header fileNeilBrown1-0/+1
2022-04-29memcg: introduce per-memcg reclaim interfaceShakeel Butt1-0/+45
2022-04-28mm/memcontrol.c: remove unused private flag of memory.oom_controlLu Jialin1-4/+0
2022-04-28mm/memcontrol.c: make cgroup_memory_noswap staticLu Jialin1-1/+1
2022-04-28mm/memcg: non-hierarchical mode is deprecatedWei Yang1-3/+0
2022-04-28mm/memcg: move generation assignment and comparison togetherWei Yang1-3/+7
2022-04-28mm/memcg: set pos explicitly for reclaim and !reclaimWei Yang1-3/+2
2022-04-28mm/memcg: set memcg after css verified and got referenceWei Yang1-8/+3
2022-04-28mm/memcg: mz already removed from rb_tree if not NULLWei Yang1-1/+0
2022-04-28mm/memcg: remove unneeded nr_scannedMiaohe Lin1-4/+1
2022-04-21memcg: sync flush only if periodic flush is delayedShakeel Butt1-1/+11
2022-03-28Merge tag 'ptrace-cleanups-for-v5.18' of git://git.kernel.org/pub/scm/linux/k...Linus Torvalds1-1/+1
2022-03-22Merge tag 'folio-5.18c' of git://git.infradead.org/users/willy/pagecacheLinus Torvalds1-21/+16
2022-03-22memcg: do not tweak node in alloc_mem_cgroup_per_node_infoWei Yang1-12/+2
2022-03-22mm: memcontrol: fix cannot alloc the maximum memcg IDMuchun Song1-2/+1
2022-03-22mm: memcontrol: reuse memory cgroup ID for kmem IDMuchun Song1-36/+3
2022-03-22mm: list_lru: replace linear array with xarrayMuchun Song1-72/+5
2022-03-22mm: list_lru: rename memcg_drain_all_list_lrus to memcg_reparent_list_lrusMuchun Song1-3/+3
2022-03-22mm: list_lru: allocate list_lru_one only when neededMuchun Song1-1/+5
2022-03-22mm: memcontrol: move memcg_online_kmem() to mem_cgroup_css_online()Muchun Song1-21/+16
2022-03-22mm: introduce kmem_cache_alloc_lruMuchun Song1-14/+0
2022-03-22mm/memcg: disable migration instead of preemption in drain_all_stock().Sebastian Andrzej Siewior1-2/+3
2022-03-22mm/memcg: protect memcg_stock with a local_lock_tSebastian Andrzej Siewior1-21/+38
2022-03-22mm/memcg: opencode the inner part of obj_cgroup_uncharge_pages() in drain_obj...Johannes Weiner1-6/+18
2022-03-22mm/memcg: protect per-CPU counter by disabling preemption on PREEMPT_RT where...Sebastian Andrzej Siewior1-1/+55
2022-03-22mm/memcg: disable threshold event handlers on PREEMPT_RTSebastian Andrzej Siewior1-2/+12
2022-03-22mm/memcg: revert ("mm/memcg: optimize user context object stock access")Michal Hocko1-67/+27
2022-03-22mm/memcontrol: return 1 from cgroup.memory __setup() handlerRandy Dunlap1-1/+1
2022-03-22memcg: synchronously enforce memory.high for large overchargesShakeel Butt1-0/+5
2022-03-22memcg: unify force charging conditionsShakeel Butt1-10/+7
2022-03-22memcg: refactor mem_cgroup_oomShakeel Butt1-27/+17
2022-03-22mm/memcg: mem_cgroup_per_node is already set to 0 on allocationWei Yang1-2/+0
2022-03-22memcg: add per-memcg total kernel memory statYosry Ahmed1-6/+21
2022-03-22memcg: replace in_interrupt() with !in_task()Shakeel Butt1-2/+2
2022-03-21mm/memcg: Convert mem_cgroup_swapout() to take a folioMatthew Wilcox (Oracle)1-11/+11
2022-03-10resume_user_mode: Move to resume_user_mode.hEric W. Biederman1-1/+1
2022-03-03mm: remove the extra ZONE_DEVICE struct page refcountChristoph Hellwig1-8/+3
2022-03-03mm: don't include <linux/memremap.h> in <linux/mm.h>Christoph Hellwig1-0/+1
2022-02-17mm/munlock: maintain page->mlock_count while unevictableHugh Dickins1-2/+1
2022-02-11mm: memcg: synchronize objcg lists with a dedicated spinlockRoman Gushchin1-5/+5
2022-01-15Merge branch 'akpm' (patches from Andrew)Linus Torvalds1-14/+30
2022-01-15memcg: add per-memcg vmalloc statShakeel Butt1-0/+1
2022-01-15mm/memcg: use struct_size() helper in kzalloc()Wang Weiyang1-5/+1
2022-01-15memcg: better bounds on the memcg stats updatesShakeel Butt1-7/+13
2022-01-15mm/memcg: add oom_group_kill memory eventDan Schatzberg1-0/+2
2022-01-15mm: memcontrol: make cgroup_memory_nokmem staticMuchun Song1-1/+1
2022-01-15mm: slab: make slab iterator functions staticMuchun Song1-1/+12
2022-01-06mm/memcg: Convert slab objcgs from struct page to struct slabVlastimil Babka1-25/+30
2022-01-06mm: Convert struct page to struct slab in functions used by other subsystemsVlastimil Babka1-2/+2
2021-12-10mm/memcg: relocate mod_objcg_mlstate(), get_obj_stock() and put_obj_stock()Waiman Long1-53/+53
2021-11-17mm: Rename folio_test_multi to folio_test_largeMatthew Wilcox (Oracle)1-1/+1
2021-11-11mm: unexport {,un}lock_page_memcgChristoph Hellwig1-2/+0
2021-11-11mm: unexport folio_memcg_{,un}lockChristoph Hellwig1-2/+0
2021-11-06Merge branch 'akpm' (patches from Andrew)Linus Torvalds1-125/+88
2021-11-06mm/vmscan: throttle reclaim when no progress is being madeMel Gorman1-9/+1
2021-11-06memcg: prohibit unconditional exceeding the limit of dying tasksVasily Averin1-19/+8
2021-11-06mm: memcontrol: remove the kmem statesMuchun Song1-5/+2
2021-11-06mm: memcontrol: remove kmemcg_id reparentingMuchun Song1-15/+4
2021-11-06memcg, kmem: further deprecate kmem.limit_in_bytesShakeel Butt1-34/+5
2021-11-06mm/memcg: remove obsolete memcg_free_kmem()Waiman Long1-11/+3
2021-11-06memcg: unify memcg stat flushingShakeel Butt1-9/+10
2021-11-06memcg: flush stats only if updatedShakeel Butt1-23/+55
2021-11-06mm/memcg: drop swp_entry_t* in mc_handle_file_pte()Peter Xu1-2/+2
2021-09-27mm/memcg: Add folio_lruvec_lock() and similar functionsMatthew Wilcox (Oracle)1-28/+49
2021-09-27mm/memcg: Add folio_lruvec()Matthew Wilcox (Oracle)1-3/+6
2021-09-27mm/memcg: Convert mem_cgroup_move_account() to use a folioMatthew Wilcox (Oracle)1-18/+19
2021-09-27mm/memcg: Add folio_memcg_lock() and folio_memcg_unlock()Matthew Wilcox (Oracle)1-16/+29
2021-09-27mm/memcg: Convert mem_cgroup_track_foreign_dirty_slowpath() to folioMatthew Wilcox (Oracle)1-3/+3
2021-09-27mm/memcg: Convert mem_cgroup_migrate() to take foliosMatthew Wilcox (Oracle)1-18/+17
2021-09-27mm/memcg: Convert mem_cgroup_uncharge() to take a folioMatthew Wilcox (Oracle)1-10/+4
2021-09-27mm/memcg: Convert uncharge_page() to uncharge_folio()Matthew Wilcox (Oracle)1-16/+15
2021-09-27mm/memcg: Convert mem_cgroup_charge() to take a folioMatthew Wilcox (Oracle)1-21/+7
2021-09-27mm/memcg: Convert commit_charge() to take a folioMatthew Wilcox (Oracle)1-14/+13
2021-09-27mm/memcg: Add folio_memcg() and related functionsMatthew Wilcox (Oracle)1-9/+12
2021-09-27mm/memcg: Convert memcg_check_events to take a node IDMatthew Wilcox (Oracle)1-11/+12
2021-09-27mm/memcg: Remove soft_limit_tree_node()Matthew Wilcox (Oracle)1-9/+3
2021-09-27mm/memcg: Use the node id in mem_cgroup_update_tree()Matthew Wilcox (Oracle)1-20/+4
2021-09-27mm/memcg: Remove 'page' parameter to mem_cgroup_charge_statistics()Matthew Wilcox (Oracle)1-6/+5
2021-09-23memcg: flush lruvec stats in the refaultShakeel Butt1-10/+0
2021-09-03Merge branch 'akpm' (patches from Andrew)Linus Torvalds1-127/+101
2021-09-03mm/vmpressure: replace vmpressure_to_css() with vmpressure_to_memcg()Hui Su1-2/+2
2021-09-03memcg: make memcg->event_list_lock irqsafeShakeel Butt1-4/+4
2021-09-03memcg: fix up drain_local_stock commentMichal Hocko1-2/+3
2021-09-03mm, memcg: save some atomic ops when flush is already trueMiaohe Lin1-1/+1
2021-09-03mm: memcontrol: set the correct memcg swappiness restrictionBaolin Wang1-1/+1
2021-09-03memcg: replace in_interrupt() by !in_task() in active_memcg()Vasily Averin1-1/+1
2021-09-03memcg: infrastructure to flush memcg statsShakeel Butt1-0/+34
2021-09-03memcg: switch lruvec stats to rstatShakeel Butt1-76/+38
2021-09-03mm, memcg: inline swap-related functions to improve disabled memcg configSuren Baghdasaryan1-10/+4
2021-09-03mm, memcg: inline mem_cgroup_{charge/uncharge} to improve disabled memcg configSuren Baghdasaryan1-21/+12
2021-09-03mm, memcg: add mem_cgroup_disabled checks in vmpressure and swap-related func...Suren Baghdasaryan1-0/+3
2021-09-03writeback: memcg: simplify cgroup_writeback_by_idShakeel Butt1-12/+1
2021-08-19Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netJakub Kicinski1-2/+4
2021-08-18net-memcg: pass in gfp_t mask to mem_cgroup_charge_skmem()Wei Wang1-13/+11
2021-08-13mm/memcg: fix incorrect flushing of lruvec data in obj_stockWaiman Long1-2/+4
2021-07-31Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netJakub Kicinski1-1/+2
2021-07-30mm: memcontrol: fix blocking rstat function called from atomic cgroup1 thresh...Johannes Weiner1-1/+2
2021-07-20memcg: enable accounting for IP address and routing-related objectsVasily Averin1-1/+1
2021-07-02Merge branch 'akpm' (patches from Andrew)Linus Torvalds1-2/+2
2021-07-01Merge branch 'for-5.14' of git://git.kernel.org/pub/scm/linux/kernel/git/denn...Linus Torvalds1-3/+8
2021-07-01mm: remove special swap entry functionsAlistair Popple1-1/+1
2021-07-01mm/memcontrol.c: fix kerneldoc comment for mem_cgroup_calculate_protectionMel Gorman1-1/+1
2021-06-29loop: charge i/o to mem and blk cgDan Schatzberg1-0/+1
2021-06-29mm: charge active memcg when no mm is setDan Schatzberg1-14/+27
2021-06-29mm: memcontrol: move obj_cgroup_uncharge_pages() out of css_set_lockMuchun Song1-1/+2
2021-06-29mm: memcontrol: simplify the logic of objcg pinning memcgMuchun Song1-14/+6
2021-06-29mm: memcontrol: remove the pgdata parameter of mem_cgroup_page_lruvecMuchun Song1-6/+3
2021-06-29mm: memcontrol: bail out early when !mm in get_mem_cgroup_from_mmMuchun Song1-11/+14
2021-06-29mm: memcontrol: fix page charging in page replacementMuchun Song1-3/+5
2021-06-29mm: memcontrol: fix root_mem_cgroup chargingMuchun Song1-5/+12
2021-06-29mm: memcg/slab: create a new set of kmalloc-cg-<n> cachesWaiman Long1-1/+1
2021-06-29mm: memcg/slab: properly set up gfp flags for objcg pointer arrayWaiman Long1-0/+8
2021-06-29mm/memcg: optimize user context object stock accessWaiman Long1-28/+72
2021-06-29mm/memcg: improve refill_obj_stock() performanceWaiman Long1-13/+35
2021-06-29mm/memcg: cache vmstat data in percpu memcg_stock_pcpWaiman Long1-3/+87
2021-06-29mm/memcg: move mod_objcg_state() to memcontrol.cWaiman Long1-0/+13
2021-06-05mm, memcg: introduce mem_cgroup_kmem_disabled()Roman Gushchin1-0/+5
2021-06-05mm, memcg: mark cgroup_memory_nosocket, nokmem and noswap as __ro_after_initRoman Gushchin1-3/+3
2021-05-07mm: fix typos in commentsIngo Molnar1-9/+9
2021-05-05mm: memcontrol: reparent nr_deferred when memcg offlineYang Shi1-0/+1
2021-05-05mm: memcontrol: rename shrinker_map to shrinker_infoYang Shi1-3/+3
2021-05-05mm: vmscan: consolidate shrinker_maps handling codeYang Shi1-127/+3
2021-04-30mm: memcontrol: inline __memcg_kmem_{un}charge() into obj_cgroup_{un}charge_p...Muchun Song1-38/+25
2021-04-30mm: memcontrol: use obj_cgroup APIs to charge kmem pagesMuchun Song1-58/+58
2021-04-30mm: memcontrol: change ug->dummy_page only if memcg changedMuchun Song1-1/+1
2021-04-30mm: memcontrol: introduce obj_cgroup_{un}charge_pagesMuchun Song1-23/+40
2021-04-30mm: memcontrol: slab: fix obtain a reference to a freeing memcgMuchun Song1-1/+9
2021-04-30memcg: charge before adding to swapcache on swapinShakeel Butt1-43/+74
2021-04-30mm: memcontrol: consolidate lruvec stat flushingJohannes Weiner1-46/+28
2021-04-30mm: memcontrol: switch to rstatJohannes Weiner1-131/+87
2021-04-30mm: memcontrol: privatize memcg_page_state query functionsJohannes Weiner1-0/+32
2021-04-30mm: memcontrol: kill mem_cgroup_nodeinfo()Johannes Weiner1-10/+11
2021-04-30mm: memcontrol: fix cpuhotplug statistics flushingJohannes Weiner1-14/+21
2021-04-30memcg: enable memcg oom-kill for __GFP_NOFAILShakeel Butt1-3/+0
2021-04-30memcg: cleanup root memcg checksShakeel Butt1-2/+2
2021-04-30mm: page-writeback: simplify memcg handling in test_clear_page_writeback()Johannes Weiner1-25/+11
2021-03-13mm/memcg: rename mem_cgroup_split_huge_fixup to split_page_memcg and add nr_p...Zhou Guanghui1-9/+6
2021-02-24mm: memcontrol: fix get_active_memcg return valueMuchun Song1-7/+3
2021-02-24mm: memcontrol: fix swap undercounting in cgroup2Muchun Song1-1/+13
2021-02-24fs: buffer: use raw page_memcg() on locked pageJohannes Weiner1-23/+0
2021-02-24mm: memcontrol: replace the loop with a list_for_each_entry()Muchun Song1-27/+8
2021-02-24mm/memcontrol: remove redundant NULL checkYang Li1-2/+1
2021-02-24mm: kmem: make __memcg_kmem_(un)charge staticRoman Gushchin1-3/+8
2021-02-24mm: memcg: add swapcache stat for memcg v2Shakeel Butt1-0/+3
2021-02-24mm/memcg: remove rcu locking for lock_page_lruvec function seriesAlex Shi1-6/+0
2021-02-24mm/memcg: revise the using condition of lock_page_lruvec function seriesAlex Shi1-4/+5
2021-02-24mm: memcontrol: make the slab calculation consistentMuchun Song1-39/+66
2021-02-24mm: memcontrol: convert NR_SHMEM_THPS account to pagesMuchun Song1-24/+2
2021-02-24mm: memcontrol: convert NR_FILE_THPS account to pagesMuchun Song1-3/+2
2021-02-24mm: memcontrol: convert NR_ANON_THPS account to pagesMuchun Song1-14/+6
2021-02-24mm: memcontrol: fix NR_ANON_THPS accounting in charge movingMuchun Song1-4/+2
2021-02-24mm: memcontrol: optimize per-lruvec stats counter memory usageMuchun Song1-1/+9
2021-02-24mm: memcg/slab: pre-allocate obj_cgroups for slab caches with SLAB_ACCOUNTRoman Gushchin1-4/+19
2021-02-23Merge tag 'idmapped-mounts-v5.12' of git://git.kernel.org/pub/scm/linux/kerne...Linus Torvalds1-1/+1
2021-02-09Revert "mm: memcontrol: avoid workload stalls when lowering memory.high"Johannes Weiner1-3/+2
2021-01-24mm: memcg/slab: optimize objcg stock drainingRoman Gushchin1-3/+1
2021-01-24fs: add file and path permissions helpersChristian Brauner1-1/+1
2020-12-19mm/memcontrol:rewrite mem_cgroup_page_lruvec()Hui Su1-37/+0
2020-12-19mm/memcg: warning on !memcg after readahead page chargedAlex Shi1-6/+4
2020-12-19mm/memcg: bail early from swap accounting if memcg disabledAlex Shi1-0/+6
2020-12-15Merge branch 'akpm' (patches from Andrew)Linus Torvalds1-3/+81
2020-12-15mm/lru: replace pgdat lru_lock with lruvec lockAlex Shi1-3/+75
2020-12-15mm/memcg: add debug checking in lock_page_memcgAlex Shi1-0/+6
2020-12-15Merge tag 'net-next-5.11' of git://git.kernel.org/pub/scm/linux/kernel/git/ne...Linus Torvalds1-79/+65
2020-12-15mm: memcontrol: account pagetables per nodeShakeel Butt1-0/+2
2020-12-15mm: move lruvec stats update functions to vmstat.hShakeel Butt1-0/+17
2020-12-15mm/memcg: remove incorrect commentAlex Shi1-1/+0
2020-12-15mm: memcontrol: sssign boolean values to a bool variableKaixu Xia1-2/+2
2020-12-15mm: memcg/slab: rename *_lruvec_slab_state to *_lruvec_kmem_stateMuchun Song1-1/+1
2020-12-15mm: memcg: remove obsolete memcg_has_children()Lukas Bulwahn1-13/+0
2020-12-15mm: memcg: deprecate the non-hierarchical modeRoman Gushchin1-77/+13
2020-12-15mm: memcg: fix obsolete code commentsRoman Gushchin1-6/+0
2020-12-15mm/memcg: update page struct member in commentsAlex Shi1-2/+2
2020-12-15mm: memcg/slab: fix use after free in obj_cgroup_chargeMuchun Song1-1/+3
2020-12-15mm: memcg/slab: fix return of child memcg objcg for root memcgMuchun Song1-0/+1
2020-12-15mm: memcontrol: eliminate redundant check in __mem_cgroup_insert_exceeded()Miaohe Lin1-7/+2
2020-12-15mm: memcontrol: remove unused mod_memcg_obj_state()Muchun Song1-11/+0
2020-12-15mm: memcontrol: add file_thp, shmem_thp to memory.statJohannes Weiner1-1/+5
2020-12-04Merge https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-nextJakub Kicinski1-77/+62
2020-12-02mm: Convert page kmemcg type to a page memcg flagRoman Gushchin1-11/+5
2020-12-02mm: memcontrol/slab: Use helpers to access slab page's memcg_dataRoman Gushchin1-3/+3
2020-12-02mm: memcontrol: Use helpers to read page's memcg dataRoman Gushchin1-65/+56
2020-11-22mm: memcg/slab: fix root memcg vmstatsMuchun Song1-2/+7
2020-11-02mm: memcg: link page counters to root if use_hierarchy is falseRoman Gushchin1-5/+10
2020-11-02mm: memcontrol: correct the NR_ANON_THPS counter of hierarchical memcgzhongjiang-ali1-2/+8
2020-10-18mm: kmem: enable kernel memcg accounting from interrupt contextsRoman Gushchin1-0/+13
2020-10-18mm: kmem: prepare remote memcg charging infra for interrupt contextsRoman Gushchin1-14/+34
2020-10-18mm: kmem: remove redundant checks from get_obj_cgroup_from_current()Roman Gushchin1-3/+0
2020-10-18mm: kmem: move memcg_kmem_bypass() calls to get_mem/obj_cgroup_from_current()Roman Gushchin1-5/+8
2020-10-18mm, memcg: rework remote charging API to support nestingRoman Gushchin1-3/+3
2020-10-13mm/memcg: fix device private memcg accountingRalph Campbell1-1/+4
2020-10-13mm: memcontrol: reword obsolete comment of mem_cgroup_unmark_under_oom()Miaohe Lin1-2/+2
2020-10-13mm: memcontrol: add the missing numa_stat interface for cgroup v2Muchun Song1-60/+110
2020-10-13mm/memcg: unify swap and memsw page countersWaiman Long1-3/+0
2020-10-13mm/memcg: simplify mem_cgroup_get_max()Waiman Long1-11/+13
2020-10-13mm/memcg: clean up obsolete enum charge_typeWaiman Long1-8/+0