mm: clean up non-standard page->_mapcount users
[email protected]
maintainerPATCH 68/126 mm: clean up non-standard page->_mapcount users
From: Vladimir Davydov <[email protected]>
Subject: mm: clean up non-standard page->_mapcount users
- Add a proper comment to page->_mapcount.
- Introduce a macro for generating helper functions.
- Place all special page->_mapcount values next to each other so that readers can see all possible values and so we don't get duplicates.
Link http://lkml.kernel.org/r/502f49000e0b63e6c62e338fac6b420bf34fb526.1464079537.git.vdavydov@virtuozzo.com open here
Signed-off-by Vladimir Davydov <[email protected]>
Cc Johannes Weiner <[email protected]>
Cc Michal Hocko <[email protected]>
Cc Eric Dumazet <[email protected]>
Cc Minchan Kim <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
include/linux/mm_types.h | 5 ++ include/linux/page-flags.h | 73 +++++++++++++++-------------------- scripts/tags.sh | 3 + 3 files changed, 40 insertions(+), 41 deletions(-)
include/linux/mm_types.h renamed from include/linux/mm_types.h~mm-clean-up-non-standard-page-_mapcount-users +5 -0
@@ -85,6 +85,11 @@ struct page {/* * Count of ptes mapped in mms, to show when * page is mapped & limit reverse map searches. +* +* Extra information about page type may be +* stored here for pages that are never mapped, +* in which case the value MUST BE <= -2. +* See page-flags.h for more details. */ atomic_t _mapcount;
include/linux/page-flags.h renamed from include/linux/page-flags.h~mm-clean-up-non-standard-page-_mapcount-users +32 -40
82 lines not on this page · raw message