mm: Add NR_WRITEBACK_TEMP counter
Miklos Szeredi authored

Fuse will use temporary buffers to write back dirty data from memory mappings
(normal writes are done synchronously).  This is needed, because there cannot
be any guarantee about the time in which a write will complete.

By using temporary buffers, from the MM's point if view the page is written
back immediately.  If the writeout was due to memory pressure, this
effectively migrates data from a full zone to a less full zone.

This patch adds a new counter (NR_WRITEBACK_TEMP) for the number of pages used
as temporary buffers.

[Lee.Schermerhorn@hp.com: add vmstat_text for NR_WRITEBACK_TEMP]
Signed-off-by: default avatarMiklos Szeredi <mszeredi@suse.cz>
Cc: Christoph Lameter <clameter@sgi.com>
Signed-off-by: default avatarLee Schermerhorn <lee.schermerhorn@hp.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
fc3ba692
Name Last commit Last update
..
Kconfig PAGEFLAGS_EXTENDED and separate page flags for Head and Tail
Makefile uaccess: add probe_kernel_write()
allocpercpu.c cpumask: Cleanup more uses of CPU_MASK and NODE_MASK
backing-dev.c mm: bdi: move statistics to debugfs
bootmem.c memory hotplug: make alloc_bootmem_section()
bounce.c block: Initial support for data-less (or empty) barrier support
dmapool.c dmapool: enable debugging for CONFIG_SLUB_DEBUG_ON too
fadvise.c xip: support non-struct page backed memory
filemap.c mm: rotate_reclaimable_page() cleanup
filemap_xip.c xip: support non-struct page backed memory
fremap.c mm: fix various kernel-doc comments
highmem.c mm: highmem kernel-doc additions
hugetlb.c page allocator: explicitly retry hugepage allocations
internal.h memory hotplug: free memmaps allocated by bootmem
maccess.c kgdb: fix optional arch functions and probe_kernel_*
madvise.c xip: support non-struct page backed memory
memcontrol.c memcg: remove redundant initialization in mem_cgroup_create()
memory.c mm: add vm_insert_mixed
memory_hotplug.c mm/memory_hotplug.c must #include "internal.h"
mempolicy.c mempolicy: use struct mempolicy pointer in shmem_sb_info
mempool.c spelling fixes: mm/
migrate.c memcg: fix VM_BUG_ON from page migration
mincore.c mm: remove nopage
mlock.c do not limit locked memory when RLIMIT_MEMLOCK is RLIM_INFINITY
mmap.c procfs task exe symlink
mmzone.c
mprotect.c
mremap.c
msync.c
nommu.c
oom_kill.c
page-writeback.c
page_alloc.c
page_io.c
page_isolation.c
pagewalk.c
pdflush.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
tiny-shmem.c
truncate.c
util.c
vmalloc.c
vmscan.c
vmstat.c