[PATCH] gfp_t: infrastructure
Beginning of gfp_t annotations: - -Wbitwise added to CHECKFLAGS - old __bitwise renamed to __bitwise__ - __bitwise defined to either __bitwise__ or nothing, depending on __CHECK_ENDIAN__ being defined - gfp_t switched from __nocast to __bitwise__ - force cast to gfp_t added to __GFP_... constants - new helper - gfp_zone(); extracts zone bits out of gfp_t value and casts the result to int Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
@@ -502,7 +502,7 @@ static void free_more_memory(void)
|
||||
yield();
|
||||
|
||||
for_each_pgdat(pgdat) {
|
||||
zones = pgdat->node_zonelists[GFP_NOFS&GFP_ZONEMASK].zones;
|
||||
zones = pgdat->node_zonelists[gfp_zone(GFP_NOFS)].zones;
|
||||
if (*zones)
|
||||
try_to_free_pages(zones, GFP_NOFS);
|
||||
}
|
||||
|
Reference in New Issue
Block a user