diff options
Diffstat (limited to 'include/linux/sched.h')
-rw-r--r-- | include/linux/sched.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h index 9c6353d9e63a..5e63ba59258c 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h | |||
@@ -1935,11 +1935,13 @@ extern void thread_group_cputime_adjusted(struct task_struct *p, cputime_t *ut, | |||
1935 | #define tsk_used_math(p) ((p)->flags & PF_USED_MATH) | 1935 | #define tsk_used_math(p) ((p)->flags & PF_USED_MATH) |
1936 | #define used_math() tsk_used_math(current) | 1936 | #define used_math() tsk_used_math(current) |
1937 | 1937 | ||
1938 | /* __GFP_IO isn't allowed if PF_MEMALLOC_NOIO is set in current->flags */ | 1938 | /* __GFP_IO isn't allowed if PF_MEMALLOC_NOIO is set in current->flags |
1939 | * __GFP_FS is also cleared as it implies __GFP_IO. | ||
1940 | */ | ||
1939 | static inline gfp_t memalloc_noio_flags(gfp_t flags) | 1941 | static inline gfp_t memalloc_noio_flags(gfp_t flags) |
1940 | { | 1942 | { |
1941 | if (unlikely(current->flags & PF_MEMALLOC_NOIO)) | 1943 | if (unlikely(current->flags & PF_MEMALLOC_NOIO)) |
1942 | flags &= ~__GFP_IO; | 1944 | flags &= ~(__GFP_IO | __GFP_FS); |
1943 | return flags; | 1945 | return flags; |
1944 | } | 1946 | } |
1945 | 1947 | ||