mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
mm: rename NR_ANON_PAGES to NR_ANON_MAPPED
NR_FILE_PAGES is the number of file pages. NR_FILE_MAPPED is the number of mapped file pages. NR_ANON_PAGES is the number of mapped anon pages. This is unhelpful naming as it's easy to confuse NR_FILE_MAPPED and NR_ANON_PAGES for mapped pages. This patch renames NR_ANON_PAGES so we have NR_FILE_PAGES is the number of file pages. NR_FILE_MAPPED is the number of mapped file pages. NR_ANON_MAPPED is the number of mapped anon pages. Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Mel Gorman <[email protected]> Acked-by: Vlastimil Babka <[email protected]> Cc: Hillf Danton <[email protected]> Cc: Johannes Weiner <[email protected]> Cc: Joonsoo Kim <[email protected]> Cc: Michal Hocko <[email protected]> Cc: Minchan Kim <[email protected]> Cc: Rik van Riel <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
50658e2e04
commit
4b9d0fab71
5 changed files with 8 additions and 8 deletions
|
|
@ -501,7 +501,7 @@ int migrate_page_move_mapping(struct address_space *mapping,
|
|||
* new page and drop references to the old page.
|
||||
*
|
||||
* Note that anonymous pages are accounted for
|
||||
* via NR_FILE_PAGES and NR_ANON_PAGES if they
|
||||
* via NR_FILE_PAGES and NR_ANON_MAPPED if they
|
||||
* are mapped to swap space.
|
||||
*/
|
||||
if (newzone != oldzone) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue