14 lines
322 B
C
Raw Normal View History

2026-01-29 22:25:33 +08:00
/* SPDX-License-Identifier: GPL-2.0 */
2026-01-21 18:59:54 +08:00
#ifndef _TOOLS_INCLUDE_LINUX_GFP_H
#define _TOOLS_INCLUDE_LINUX_GFP_H
2026-01-29 22:25:33 +08:00
#include <linux/types.h>
#include <linux/gfp_types.h>
static inline bool gfpflags_allow_blocking(const gfp_t gfp_flags)
{
return !!(gfp_flags & __GFP_DIRECT_RECLAIM);
}
2026-01-21 18:59:54 +08:00
#endif /* _TOOLS_INCLUDE_LINUX_GFP_H */