gfp.h 322 B

12345678910111213
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef _TOOLS_INCLUDE_LINUX_GFP_H
  3. #define _TOOLS_INCLUDE_LINUX_GFP_H
  4. #include <linux/types.h>
  5. #include <linux/gfp_types.h>
  6. static inline bool gfpflags_allow_blocking(const gfp_t gfp_flags)
  7. {
  8. return !!(gfp_flags & __GFP_DIRECT_RECLAIM);
  9. }
  10. #endif /* _TOOLS_INCLUDE_LINUX_GFP_H */