mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
[PATCH] gfp_t: the rest
zone handling, mapping->flags handling Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
c4cdd03831
commit
260b23674f
4 changed files with 29 additions and 23 deletions
|
@ -21,16 +21,17 @@
|
|||
|
||||
static inline gfp_t mapping_gfp_mask(struct address_space * mapping)
|
||||
{
|
||||
return mapping->flags & __GFP_BITS_MASK;
|
||||
return (__force gfp_t)mapping->flags & __GFP_BITS_MASK;
|
||||
}
|
||||
|
||||
/*
|
||||
* This is non-atomic. Only to be used before the mapping is activated.
|
||||
* Probably needs a barrier...
|
||||
*/
|
||||
static inline void mapping_set_gfp_mask(struct address_space *m, int mask)
|
||||
static inline void mapping_set_gfp_mask(struct address_space *m, gfp_t mask)
|
||||
{
|
||||
m->flags = (m->flags & ~__GFP_BITS_MASK) | mask;
|
||||
m->flags = (m->flags & ~(__force unsigned long)__GFP_BITS_MASK) |
|
||||
(__force unsigned long)mask;
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue