mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
mm: Add NR_WRITEBACK_TEMP counter
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. [[email protected]: add vmstat_text for NR_WRITEBACK_TEMP] Signed-off-by: Miklos Szeredi <[email protected]> Cc: Christoph Lameter <[email protected]> Signed-off-by: Lee Schermerhorn <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
dd5656e59c
commit
fc3ba692a4
5 changed files with 8 additions and 1 deletions
|
|
@ -211,7 +211,8 @@ clip_bdi_dirty_limit(struct backing_dev_info *bdi, long dirty, long *pbdi_dirty)
|
|||
avail_dirty = dirty -
|
||||
(global_page_state(NR_FILE_DIRTY) +
|
||||
global_page_state(NR_WRITEBACK) +
|
||||
global_page_state(NR_UNSTABLE_NFS));
|
||||
global_page_state(NR_UNSTABLE_NFS) +
|
||||
global_page_state(NR_WRITEBACK_TEMP));
|
||||
|
||||
if (avail_dirty < 0)
|
||||
avail_dirty = 0;
|
||||
|
|
|
|||
|
|
@ -612,6 +612,7 @@ static const char * const vmstat_text[] = {
|
|||
"nr_unstable",
|
||||
"nr_bounce",
|
||||
"nr_vmscan_write",
|
||||
"nr_writeback_temp",
|
||||
|
||||
#ifdef CONFIG_NUMA
|
||||
"numa_hit",
|
||||
|
|
|
|||
Loading…
Reference in a new issue