OSDN Git Service

libpagemap: add pm_map_usage_flags
authorColin Cross <ccross@android.com>
Thu, 23 May 2013 19:53:14 +0000 (12:53 -0700)
committerColin Cross <ccross@google.com>
Tue, 11 Jun 2013 00:47:12 +0000 (00:47 +0000)
commit3a1897792d0b5cc972d879af297ee5cfd095be68
treeeeb7953fbbe38949b22b708365a08be8faa46da9
parent122c7191dbac60e0a79c24551c142c98597354cd
libpagemap: add pm_map_usage_flags

Add pm_map_usage_flags, which is the same as pm_map_usage but only
counts pages with the specified flags set.  This can be used to
only count "swapbacked" pages, which are pages that cannot be
flushed back to disk without using swap.

Change-Id: I6367555d9385502c797935849bb4221a8354e251
libpagemap/include/pagemap/pagemap.h
libpagemap/pm_map.c