3
0
mirror of https://github.com/Qortal/Brooklyn.git synced 2025-02-01 07:42:18 +00:00
Brooklyn/tools/include/linux/gfp.h

14 lines
322 B
C
Raw Permalink Normal View History

/* SPDX-License-Identifier: GPL-2.0 */
2022-04-02 13:24:21 +00:00
#ifndef _TOOLS_INCLUDE_LINUX_GFP_H
#define _TOOLS_INCLUDE_LINUX_GFP_H
#include <linux/types.h>
2022-12-14 06:30:32 +00:00
#include <linux/gfp_types.h>
static inline bool gfpflags_allow_blocking(const gfp_t gfp_flags)
{
return !!(gfp_flags & __GFP_DIRECT_RECLAIM);
}
2022-04-02 13:24:21 +00:00
#endif /* _TOOLS_INCLUDE_LINUX_GFP_H */