diff options
author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2015-11-23 03:04:05 -0500 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2015-11-23 03:04:05 -0500 |
commit | 92907cbbef8625bb3998d1eb385fc88f23c97a3f (patch) | |
tree | 15626ff9287e37c3cb81c7286d6db5a7fd77c854 /include/linux/pagemap.h | |
parent | 15fbfccfe92c62ae8d1ecc647c44157ed01ac02e (diff) | |
parent | 1ec218373b8ebda821aec00bb156a9c94fad9cd4 (diff) |
Merge tag 'v4.4-rc2' into drm-intel-next-queued
Linux 4.4-rc2
Backmerge to get at
commit 1b0e3a049efe471c399674fd954500ce97438d30
Author: Imre Deak <imre.deak@intel.com>
Date: Thu Nov 5 23:04:11 2015 +0200
drm/i915/skl: disable display side power well support for now
so that we can proplery re-eanble skl power wells in -next.
Conflicts are just adjacent lines changed, except for intel_fbdev.c
where we need to interleave the changs. Nothing nefarious.
Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
Diffstat (limited to 'include/linux/pagemap.h')
-rw-r--r-- | include/linux/pagemap.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/pagemap.h b/include/linux/pagemap.h index a6c78e00ea96..26eabf5ec718 100644 --- a/include/linux/pagemap.h +++ b/include/linux/pagemap.h | |||
@@ -69,6 +69,13 @@ static inline gfp_t mapping_gfp_mask(struct address_space * mapping) | |||
69 | return (__force gfp_t)mapping->flags & __GFP_BITS_MASK; | 69 | return (__force gfp_t)mapping->flags & __GFP_BITS_MASK; |
70 | } | 70 | } |
71 | 71 | ||
72 | /* Restricts the given gfp_mask to what the mapping allows. */ | ||
73 | static inline gfp_t mapping_gfp_constraint(struct address_space *mapping, | ||
74 | gfp_t gfp_mask) | ||
75 | { | ||
76 | return mapping_gfp_mask(mapping) & gfp_mask; | ||
77 | } | ||
78 | |||
72 | /* | 79 | /* |
73 | * This is non-atomic. Only to be used before the mapping is activated. | 80 | * This is non-atomic. Only to be used before the mapping is activated. |
74 | * Probably needs a barrier... | 81 | * Probably needs a barrier... |