/proc/pid/smaps: show VM_SOFTDIRTY flag in VmFlags line
[platform/adaptation/renesas_rcar/renesas_kernel.git] / fs / proc / task_mmu.c
index 9f1369f..abbe825 100644 (file)
@@ -561,6 +561,9 @@ static void show_smap_vma_flags(struct seq_file *m, struct vm_area_struct *vma)
                [ilog2(VM_NONLINEAR)]   = "nl",
                [ilog2(VM_ARCH_1)]      = "ar",
                [ilog2(VM_DONTDUMP)]    = "dd",
+#ifdef CONFIG_MEM_SOFT_DIRTY
+               [ilog2(VM_SOFTDIRTY)]   = "sd",
+#endif
                [ilog2(VM_MIXEDMAP)]    = "mm",
                [ilog2(VM_HUGEPAGE)]    = "hg",
                [ilog2(VM_NOHUGEPAGE)]  = "nh",