• C
    pageflags: introduce macros to generate page flag functions · f94a62e9
    Christoph Lameter 提交于
    Introduce a set of macros that generate functions to handle page flags.
    
    A page flag function group typically starts with either
    
    	SETPAGEFLAG(<part of function name>,<part of PG_ flagname>)
    
    to create a set of page flag operations that are atomic. Or
    
    	__SETPAGEFLAG(<part of function name>,<part of PG_ flagname)
    
    to create a set of page flag operations that are not atomic.
    
    Then additional operations can be added using the following macros
    
    TESTSCFLAG		Create additional atomic test-and-set and
    			test-and-clear functions
    
    TESTSETFLAG		Create additional test and set function
    TESTCLEARFLAG		Create additional test and clear function
    SETPAGEFLAG		Create additional atomic set function
    CLEARPAGEFLAG		Create additional atomic clear function
    __TESTPAGEFLAG		Create additional non atomic set function
    __SETPAGEFLAG		Create additional non atomic clear function
    Signed-off-by: NChristoph Lameter <clameter@sgi.com>
    Cc: Andy Whitcroft <apw@shadowen.org>
    Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
    Cc: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
    Cc: Rik van Riel <riel@redhat.com>
    Cc: Mel Gorman <mel@csn.ul.ie>
    Cc: Jeremy Fitzhardinge <jeremy@goop.org>
    Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
    Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
    f94a62e9
page-flags.h 12.4 KB