projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
radix tree: use GFP_ZONEMASK bits of gfp_t for flags
[linux-2.6-microblaze.git]
/
include
/
linux
/
idr.h
diff --git
a/include/linux/idr.h
b/include/linux/idr.h
index
7d6a631
..
913c335
100644
(file)
--- a/
include/linux/idr.h
+++ b/
include/linux/idr.h
@@
-29,7
+29,8
@@
struct idr {
#define IDR_FREE 0
/* Set the IDR flag and the IDR_FREE tag */
#define IDR_FREE 0
/* Set the IDR flag and the IDR_FREE tag */
-#define IDR_RT_MARKER ((__force gfp_t)(3 << __GFP_BITS_SHIFT))
+#define IDR_RT_MARKER (ROOT_IS_IDR | (__force gfp_t) \
+ (1 << (ROOT_TAG_SHIFT + IDR_FREE)))
#define IDR_INIT_BASE(base) { \
.idr_rt = RADIX_TREE_INIT(IDR_RT_MARKER), \
#define IDR_INIT_BASE(base) { \
.idr_rt = RADIX_TREE_INIT(IDR_RT_MARKER), \