mm: smaps: export mlock information
authorNikanth Karthikesan <knikanth@suse.de>
Thu, 13 Jan 2011 23:45:53 +0000 (15:45 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 14 Jan 2011 01:32:33 +0000 (17:32 -0800)
commit2d90508f638241a2e7422d884767398296ebe720
tree5b80c4919d924ab76c02b629465cbc7820010a53
parent62c70bce8ac236514c610020bb1ae5b8bde965cb
mm: smaps: export mlock information

Currently there is no way to find whether a process has locked its pages
in memory or not.  And which of the memory regions are locked in memory.

Add a new field "Locked" to export this information via the smaps file.

Signed-off-by: Nikanth Karthikesan <knikanth@suse.de>
Acked-by: Balbir Singh <balbir@linux.vnet.ibm.com>
Acked-by: Wu Fengguang <fengguang.wu@intel.com>
Cc: Matt Mackall <mpm@selenic.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Documentation/filesystems/proc.txt
fs/proc/task_mmu.c