2022-02-02 12:03:00 +01:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0 */
|
2017-05-31 00:38:09 +00:00
|
|
|
#ifndef _TOOLS_INCLUDE_LINUX_GFP_H
|
|
|
|
|
#define _TOOLS_INCLUDE_LINUX_GFP_H
|
|
|
|
|
|
2022-02-02 12:03:00 +01:00
|
|
|
#include <linux/types.h>
|
2022-09-02 20:19:23 +01:00
|
|
|
#include <linux/gfp_types.h>
|
2022-02-02 12:03:00 +01:00
|
|
|
|
|
|
|
|
static inline bool gfpflags_allow_blocking(const gfp_t gfp_flags)
|
|
|
|
|
{
|
|
|
|
|
return !!(gfp_flags & __GFP_DIRECT_RECLAIM);
|
|
|
|
|
}
|
|
|
|
|
|
2017-05-31 00:38:09 +00:00
|
|
|
#endif /* _TOOLS_INCLUDE_LINUX_GFP_H */
|