memcg: cleanup cache_charge
Daisuke Nishimura authored

Current mem_cgroup_cache_charge is a bit complicated especially
in the case of shmem's swap-in.

This patch cleans it up by using try_charge_swapin and commit_charge_swapin.
Signed-off-by: default avatarDaisuke Nishimura <nishimura@mxp.nes.nec.co.jp>
Acked-by: default avatarKAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
83aae4c7
Name Last commit Last update
..
Kconfig nommu: make CONFIG_UNEVICTABLE_LRU available when CONFIG_MMU=n
Kconfig.debug generic debug pagealloc: build fix
Makefile generic debug pagealloc
allocpercpu.c cpumask: use new cpumask_ functions in core code.
backing-dev.c Move the default_backing_dev_info out of readahead.c and into backing-dev.c
bootmem.c bootmem, x86: further fixes for arch-specific bootmem wrapping
bounce.c bounce: don't rely on a zeroed bio_vec list
debug-pagealloc.c generic debug pagealloc
dmapool.c dmapool: enable debugging for CONFIG_SLUB_DEBUG_ON too
fadvise.c [CVE-2009-0029] System call wrapper special cases
failslab.c SLUB: failslab support
filemap.c x86, mm: dont use non-temporal stores in pagecache accesses
filemap_xip.c mm: do_xip_mapping_read: fix length calculation
fremap.c Do not account for the address space used by hugetlbfs using VM_ACCOUNT
highmem.c mm: introduce debug_kmap_atomic
hugetlb.c hugetlb: chg cannot become less than 0
internal.h nommu: there is no mlock() for NOMMU, so don't provide the bits
maccess.c kgdb: fix optional arch functions and probe_kernel_*
madvise.c [CVE-2009-0029] System call wrappers part 14
memcontrol.c memcg: cleanup cache_charge
memory.c mm: page_mkwrite change prototype to match fault
memory_hotplug.c mm: remove GFP_HIGHUSER_PAGECACHE
mempolicy.c [CVE-2009-0029] System call wrappers part 28
mempool.c spelling fixes: mm/
migrate.c migration: migrate_vmas should check "vma"
mincore.c
mlock.c
mm_init.c
mmap.c
mmu_notifier.c
mmzone.c
mprotect.c
mremap.c
msync.c
nommu.c
oom_kill.c
page-writeback.c
page_alloc.c
page_cgroup.c
page_io.c
page_isolation.c
pagewalk.c
pdflush.c
percpu.c
prio_tree.c
quicklist.c
readahead.c
rmap.c
shmem.c
shmem_acl.c
slab.c
slob.c
slub.c
sparse-vmemmap.c
sparse.c
swap.c
swap_state.c
swapfile.c
thrash.c
truncate.c
util.c
vmalloc.c
vmscan.c
vmstat.c