diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2017-11-15 22:42:40 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2017-11-15 22:42:40 -0500 |
commit | 7c225c69f86c934e3be9be63ecde754e286838d7 (patch) | |
tree | ff2df419b0c4886b37407235f7d21215e4cf45e4 /fs/proc/task_mmu.c | |
parent | 6363b3f3ac5be096d08c8c504128befa0c033529 (diff) | |
parent | 1b7176aea0a924ac59c6a283129d3e8eb00aa915 (diff) |
Merge branch 'akpm' (patches from Andrew)
Merge updates from Andrew Morton:
- a few misc bits
- ocfs2 updates
- almost all of MM
* emailed patches from Andrew Morton <akpm@linux-foundation.org>: (131 commits)
memory hotplug: fix comments when adding section
mm: make alloc_node_mem_map a void call if we don't have CONFIG_FLAT_NODE_MEM_MAP
mm: simplify nodemask printing
mm,oom_reaper: remove pointless kthread_run() error check
mm/page_ext.c: check if page_ext is not prepared
writeback: remove unused function parameter
mm: do not rely on preempt_count in print_vma_addr
mm, sparse: do not swamp log with huge vmemmap allocation failures
mm/hmm: remove redundant variable align_end
mm/list_lru.c: mark expected switch fall-through
mm/shmem.c: mark expected switch fall-through
mm/page_alloc.c: broken deferred calculation
mm: don't warn about allocations which stall for too long
fs: fuse: account fuse_inode slab memory as reclaimable
mm, page_alloc: fix potential false positive in __zone_watermark_ok
mm: mlock: remove lru_add_drain_all()
mm, sysctl: make NUMA stats configurable
shmem: convert shmem_init_inodecache() to void
Unify migrate_pages and move_pages access checks
mm, pagevec: rename pagevec drained field
...
Diffstat (limited to 'fs/proc/task_mmu.c')
-rw-r--r-- | fs/proc/task_mmu.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/fs/proc/task_mmu.c b/fs/proc/task_mmu.c index 6744bd706ecf..875231c36cb3 100644 --- a/fs/proc/task_mmu.c +++ b/fs/proc/task_mmu.c | |||
@@ -26,7 +26,7 @@ | |||
26 | 26 | ||
27 | void task_mem(struct seq_file *m, struct mm_struct *mm) | 27 | void task_mem(struct seq_file *m, struct mm_struct *mm) |
28 | { | 28 | { |
29 | unsigned long text, lib, swap, ptes, pmds, anon, file, shmem; | 29 | unsigned long text, lib, swap, anon, file, shmem; |
30 | unsigned long hiwater_vm, total_vm, hiwater_rss, total_rss; | 30 | unsigned long hiwater_vm, total_vm, hiwater_rss, total_rss; |
31 | 31 | ||
32 | anon = get_mm_counter(mm, MM_ANONPAGES); | 32 | anon = get_mm_counter(mm, MM_ANONPAGES); |
@@ -50,8 +50,6 @@ void task_mem(struct seq_file *m, struct mm_struct *mm) | |||
50 | text = (PAGE_ALIGN(mm->end_code) - (mm->start_code & PAGE_MASK)) >> 10; | 50 | text = (PAGE_ALIGN(mm->end_code) - (mm->start_code & PAGE_MASK)) >> 10; |
51 | lib = (mm->exec_vm << (PAGE_SHIFT-10)) - text; | 51 | lib = (mm->exec_vm << (PAGE_SHIFT-10)) - text; |
52 | swap = get_mm_counter(mm, MM_SWAPENTS); | 52 | swap = get_mm_counter(mm, MM_SWAPENTS); |
53 | ptes = PTRS_PER_PTE * sizeof(pte_t) * atomic_long_read(&mm->nr_ptes); | ||
54 | pmds = PTRS_PER_PMD * sizeof(pmd_t) * mm_nr_pmds(mm); | ||
55 | seq_printf(m, | 53 | seq_printf(m, |
56 | "VmPeak:\t%8lu kB\n" | 54 | "VmPeak:\t%8lu kB\n" |
57 | "VmSize:\t%8lu kB\n" | 55 | "VmSize:\t%8lu kB\n" |
@@ -67,7 +65,6 @@ void task_mem(struct seq_file *m, struct mm_struct *mm) | |||
67 | "VmExe:\t%8lu kB\n" | 65 | "VmExe:\t%8lu kB\n" |
68 | "VmLib:\t%8lu kB\n" | 66 | "VmLib:\t%8lu kB\n" |
69 | "VmPTE:\t%8lu kB\n" | 67 | "VmPTE:\t%8lu kB\n" |
70 | "VmPMD:\t%8lu kB\n" | ||
71 | "VmSwap:\t%8lu kB\n", | 68 | "VmSwap:\t%8lu kB\n", |
72 | hiwater_vm << (PAGE_SHIFT-10), | 69 | hiwater_vm << (PAGE_SHIFT-10), |
73 | total_vm << (PAGE_SHIFT-10), | 70 | total_vm << (PAGE_SHIFT-10), |
@@ -80,8 +77,7 @@ void task_mem(struct seq_file *m, struct mm_struct *mm) | |||
80 | shmem << (PAGE_SHIFT-10), | 77 | shmem << (PAGE_SHIFT-10), |
81 | mm->data_vm << (PAGE_SHIFT-10), | 78 | mm->data_vm << (PAGE_SHIFT-10), |
82 | mm->stack_vm << (PAGE_SHIFT-10), text, lib, | 79 | mm->stack_vm << (PAGE_SHIFT-10), text, lib, |
83 | ptes >> 10, | 80 | mm_pgtables_bytes(mm) >> 10, |
84 | pmds >> 10, | ||
85 | swap << (PAGE_SHIFT-10)); | 81 | swap << (PAGE_SHIFT-10)); |
86 | hugetlb_report_usage(m, mm); | 82 | hugetlb_report_usage(m, mm); |
87 | } | 83 | } |