X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;ds=sidebyside;f=include%2Fnet%2Fsock.h;h=bbf7c2cf15b4ec278bca5426b3319ca501454d66;hb=ccf27814a63fc122dc5980453a18847dc5d8429f;hp=f570e75e3da927c54438340988f2a56762220060;hpb=008315e4c67cb0860ad27e31252081262b425998;p=karo-tx-linux.git diff --git a/include/net/sock.h b/include/net/sock.h index f570e75e3da9..bbf7c2cf15b4 100644 --- a/include/net/sock.h +++ b/include/net/sock.h @@ -2041,7 +2041,7 @@ struct sk_buff *sk_stream_alloc_skb(struct sock *sk, int size, gfp_t gfp, */ static inline struct page_frag *sk_page_frag(struct sock *sk) { - if (sk->sk_allocation & __GFP_WAIT) + if (gfpflags_allow_blocking(sk->sk_allocation)) return ¤t->task_frag; return &sk->sk_frag;