Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 #ifndef _TOOLS_INCLUDE_LINUX_GFP_H
0003 #define _TOOLS_INCLUDE_LINUX_GFP_H
0004 
0005 #include <linux/types.h>
0006 #include <linux/gfp_types.h>
0007 
0008 static inline bool gfpflags_allow_blocking(const gfp_t gfp_flags)
0009 {
0010     return !!(gfp_flags & __GFP_DIRECT_RECLAIM);
0011 }
0012 
0013 #endif /* _TOOLS_INCLUDE_LINUX_GFP_H */