OSDN Git Service

libpagemap: fix vss calculation
authorColin Cross <ccross@android.com>
Wed, 22 May 2013 23:33:03 +0000 (16:33 -0700)
committerColin Cross <ccross@google.com>
Tue, 11 Jun 2013 00:44:18 +0000 (00:44 +0000)
commitad0b50bf21b04d64d56213014565d6e92d1c562e
tree893c35c0871416030bcc6671c54c6e5da556bd95
parent9e962bdfec55e63c0b1016ac57e5c7dbe23e65c0
libpagemap: fix vss calculation

pm_map_usage was not incrementing vss for pages that were in the
process's map but not occupying a physical page.  Move the
vss increment above the check for present mappings.

Change-Id: I2706e6fbcbfe7d70f10950333a486d690bc84d6c
libpagemap/pm_map.c