You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
322 B
14 lines
322 B
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef _TOOLS_INCLUDE_LINUX_GFP_H
|
|
#define _TOOLS_INCLUDE_LINUX_GFP_H
|
|
|
|
#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);
|
|
}
|
|
|
|
#endif /* _TOOLS_INCLUDE_LINUX_GFP_H */
|