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