radix-tree.h 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554
  1. /*
  2. * Copyright (C) 2001 Momchil Velikov
  3. * Portions Copyright (C) 2001 Christoph Hellwig
  4. * Copyright (C) 2006 Nick Piggin
  5. * Copyright (C) 2012 Konstantin Khlebnikov
  6. *
  7. * This program is free software; you can redistribute it and/or
  8. * modify it under the terms of the GNU General Public License as
  9. * published by the Free Software Foundation; either version 2, or (at
  10. * your option) any later version.
  11. *
  12. * This program is distributed in the hope that it will be useful, but
  13. * WITHOUT ANY WARRANTY; without even the implied warranty of
  14. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  15. * General Public License for more details.
  16. *
  17. * You should have received a copy of the GNU General Public License
  18. * along with this program; if not, write to the Free Software
  19. * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  20. */
  21. #ifndef _LINUX_RADIX_TREE_H
  22. #define _LINUX_RADIX_TREE_H
  23. #include <linux/bitops.h>
  24. #include <linux/preempt.h>
  25. #include <linux/types.h>
  26. #include <linux/bug.h>
  27. #include <linux/kernel.h>
  28. #include <linux/rcupdate.h>
  29. /*
  30. * The bottom two bits of the slot determine how the remaining bits in the
  31. * slot are interpreted:
  32. *
  33. * 00 - data pointer
  34. * 01 - internal entry
  35. * 10 - exceptional entry
  36. * 11 - this bit combination is currently unused/reserved
  37. *
  38. * The internal entry may be a pointer to the next level in the tree, a
  39. * sibling entry, or an indicator that the entry in this slot has been moved
  40. * to another location in the tree and the lookup should be restarted. While
  41. * NULL fits the 'data pointer' pattern, it means that there is no entry in
  42. * the tree for this index (no matter what level of the tree it is found at).
  43. * This means that you cannot store NULL in the tree as a value for the index.
  44. */
  45. #define RADIX_TREE_ENTRY_MASK 3UL
  46. #define RADIX_TREE_INTERNAL_NODE 1UL
  47. /*
  48. * Most users of the radix tree store pointers but shmem/tmpfs stores swap
  49. * entries in the same tree. They are marked as exceptional entries to
  50. * distinguish them from pointers to struct page.
  51. * EXCEPTIONAL_ENTRY tests the bit, EXCEPTIONAL_SHIFT shifts content past it.
  52. */
  53. #define RADIX_TREE_EXCEPTIONAL_ENTRY 2
  54. #define RADIX_TREE_EXCEPTIONAL_SHIFT 2
  55. static inline bool radix_tree_is_internal_node(void *ptr)
  56. {
  57. return ((unsigned long)ptr & RADIX_TREE_ENTRY_MASK) ==
  58. RADIX_TREE_INTERNAL_NODE;
  59. }
  60. /*** radix-tree API starts here ***/
  61. #define RADIX_TREE_MAX_TAGS 3
  62. #ifndef RADIX_TREE_MAP_SHIFT
  63. #define RADIX_TREE_MAP_SHIFT (CONFIG_BASE_SMALL ? 4 : 6)
  64. #endif
  65. #define RADIX_TREE_MAP_SIZE (1UL << RADIX_TREE_MAP_SHIFT)
  66. #define RADIX_TREE_MAP_MASK (RADIX_TREE_MAP_SIZE-1)
  67. #define RADIX_TREE_TAG_LONGS \
  68. ((RADIX_TREE_MAP_SIZE + BITS_PER_LONG - 1) / BITS_PER_LONG)
  69. #define RADIX_TREE_INDEX_BITS (8 /* CHAR_BIT */ * sizeof(unsigned long))
  70. #define RADIX_TREE_MAX_PATH (DIV_ROUND_UP(RADIX_TREE_INDEX_BITS, \
  71. RADIX_TREE_MAP_SHIFT))
  72. struct radix_tree_node {
  73. unsigned char shift; /* Bits remaining in each slot */
  74. unsigned char offset; /* Slot offset in parent */
  75. unsigned char count; /* Total entry count */
  76. unsigned char exceptional; /* Exceptional entry count */
  77. struct radix_tree_node *parent; /* Used when ascending tree */
  78. void *private_data; /* For tree user */
  79. union {
  80. struct list_head private_list; /* For tree user */
  81. struct rcu_head rcu_head; /* Used when freeing node */
  82. };
  83. void __rcu *slots[RADIX_TREE_MAP_SIZE];
  84. unsigned long tags[RADIX_TREE_MAX_TAGS][RADIX_TREE_TAG_LONGS];
  85. };
  86. /* root tags are stored in gfp_mask, shifted by __GFP_BITS_SHIFT */
  87. struct radix_tree_root {
  88. gfp_t gfp_mask;
  89. struct radix_tree_node __rcu *rnode;
  90. };
  91. #define RADIX_TREE_INIT(mask) { \
  92. .gfp_mask = (mask), \
  93. .rnode = NULL, \
  94. }
  95. #define RADIX_TREE(name, mask) \
  96. struct radix_tree_root name = RADIX_TREE_INIT(mask)
  97. #define INIT_RADIX_TREE(root, mask) \
  98. do { \
  99. (root)->gfp_mask = (mask); \
  100. (root)->rnode = NULL; \
  101. } while (0)
  102. static inline bool radix_tree_empty(struct radix_tree_root *root)
  103. {
  104. return root->rnode == NULL;
  105. }
  106. /**
  107. * struct radix_tree_iter - radix tree iterator state
  108. *
  109. * @index: index of current slot
  110. * @next_index: one beyond the last index for this chunk
  111. * @tags: bit-mask for tag-iterating
  112. * @node: node that contains current slot
  113. * @shift: shift for the node that holds our slots
  114. *
  115. * This radix tree iterator works in terms of "chunks" of slots. A chunk is a
  116. * subinterval of slots contained within one radix tree leaf node. It is
  117. * described by a pointer to its first slot and a struct radix_tree_iter
  118. * which holds the chunk's position in the tree and its size. For tagged
  119. * iteration radix_tree_iter also holds the slots' bit-mask for one chosen
  120. * radix tree tag.
  121. */
  122. struct radix_tree_iter {
  123. unsigned long index;
  124. unsigned long next_index;
  125. unsigned long tags;
  126. struct radix_tree_node *node;
  127. #ifdef CONFIG_RADIX_TREE_MULTIORDER
  128. unsigned int shift;
  129. #endif
  130. };
  131. static inline unsigned int iter_shift(const struct radix_tree_iter *iter)
  132. {
  133. #ifdef CONFIG_RADIX_TREE_MULTIORDER
  134. return iter->shift;
  135. #else
  136. return 0;
  137. #endif
  138. }
  139. /**
  140. * Radix-tree synchronization
  141. *
  142. * The radix-tree API requires that users provide all synchronisation (with
  143. * specific exceptions, noted below).
  144. *
  145. * Synchronization of access to the data items being stored in the tree, and
  146. * management of their lifetimes must be completely managed by API users.
  147. *
  148. * For API usage, in general,
  149. * - any function _modifying_ the tree or tags (inserting or deleting
  150. * items, setting or clearing tags) must exclude other modifications, and
  151. * exclude any functions reading the tree.
  152. * - any function _reading_ the tree or tags (looking up items or tags,
  153. * gang lookups) must exclude modifications to the tree, but may occur
  154. * concurrently with other readers.
  155. *
  156. * The notable exceptions to this rule are the following functions:
  157. * __radix_tree_lookup
  158. * radix_tree_lookup
  159. * radix_tree_lookup_slot
  160. * radix_tree_tag_get
  161. * radix_tree_gang_lookup
  162. * radix_tree_gang_lookup_slot
  163. * radix_tree_gang_lookup_tag
  164. * radix_tree_gang_lookup_tag_slot
  165. * radix_tree_tagged
  166. *
  167. * The first 8 functions are able to be called locklessly, using RCU. The
  168. * caller must ensure calls to these functions are made within rcu_read_lock()
  169. * regions. Other readers (lock-free or otherwise) and modifications may be
  170. * running concurrently.
  171. *
  172. * It is still required that the caller manage the synchronization and lifetimes
  173. * of the items. So if RCU lock-free lookups are used, typically this would mean
  174. * that the items have their own locks, or are amenable to lock-free access; and
  175. * that the items are freed by RCU (or only freed after having been deleted from
  176. * the radix tree *and* a synchronize_rcu() grace period).
  177. *
  178. * (Note, rcu_assign_pointer and rcu_dereference are not needed to control
  179. * access to data items when inserting into or looking up from the radix tree)
  180. *
  181. * Note that the value returned by radix_tree_tag_get() may not be relied upon
  182. * if only the RCU read lock is held. Functions to set/clear tags and to
  183. * delete nodes running concurrently with it may affect its result such that
  184. * two consecutive reads in the same locked section may return different
  185. * values. If reliability is required, modification functions must also be
  186. * excluded from concurrency.
  187. *
  188. * radix_tree_tagged is able to be called without locking or RCU.
  189. */
  190. /**
  191. * radix_tree_deref_slot - dereference a slot
  192. * @pslot: pointer to slot, returned by radix_tree_lookup_slot
  193. * Returns: item that was stored in that slot with any direct pointer flag
  194. * removed.
  195. *
  196. * For use with radix_tree_lookup_slot(). Caller must hold tree at least read
  197. * locked across slot lookup and dereference. Not required if write lock is
  198. * held (ie. items cannot be concurrently inserted).
  199. *
  200. * radix_tree_deref_retry must be used to confirm validity of the pointer if
  201. * only the read lock is held.
  202. */
  203. static inline void *radix_tree_deref_slot(void **pslot)
  204. {
  205. return rcu_dereference(*pslot);
  206. }
  207. /**
  208. * radix_tree_deref_slot_protected - dereference a slot without RCU lock but with tree lock held
  209. * @pslot: pointer to slot, returned by radix_tree_lookup_slot
  210. * Returns: item that was stored in that slot with any direct pointer flag
  211. * removed.
  212. *
  213. * Similar to radix_tree_deref_slot but only used during migration when a pages
  214. * mapping is being moved. The caller does not hold the RCU read lock but it
  215. * must hold the tree lock to prevent parallel updates.
  216. */
  217. static inline void *radix_tree_deref_slot_protected(void **pslot,
  218. spinlock_t *treelock)
  219. {
  220. return rcu_dereference_protected(*pslot, lockdep_is_held(treelock));
  221. }
  222. /**
  223. * radix_tree_deref_retry - check radix_tree_deref_slot
  224. * @arg: pointer returned by radix_tree_deref_slot
  225. * Returns: 0 if retry is not required, otherwise retry is required
  226. *
  227. * radix_tree_deref_retry must be used with radix_tree_deref_slot.
  228. */
  229. static inline int radix_tree_deref_retry(void *arg)
  230. {
  231. return unlikely(radix_tree_is_internal_node(arg));
  232. }
  233. /**
  234. * radix_tree_exceptional_entry - radix_tree_deref_slot gave exceptional entry?
  235. * @arg: value returned by radix_tree_deref_slot
  236. * Returns: 0 if well-aligned pointer, non-0 if exceptional entry.
  237. */
  238. static inline int radix_tree_exceptional_entry(void *arg)
  239. {
  240. /* Not unlikely because radix_tree_exception often tested first */
  241. return (unsigned long)arg & RADIX_TREE_EXCEPTIONAL_ENTRY;
  242. }
  243. /**
  244. * radix_tree_exception - radix_tree_deref_slot returned either exception?
  245. * @arg: value returned by radix_tree_deref_slot
  246. * Returns: 0 if well-aligned pointer, non-0 if either kind of exception.
  247. */
  248. static inline int radix_tree_exception(void *arg)
  249. {
  250. return unlikely((unsigned long)arg & RADIX_TREE_ENTRY_MASK);
  251. }
  252. int __radix_tree_create(struct radix_tree_root *root, unsigned long index,
  253. unsigned order, struct radix_tree_node **nodep,
  254. void ***slotp);
  255. int __radix_tree_insert(struct radix_tree_root *, unsigned long index,
  256. unsigned order, void *);
  257. static inline int radix_tree_insert(struct radix_tree_root *root,
  258. unsigned long index, void *entry)
  259. {
  260. return __radix_tree_insert(root, index, 0, entry);
  261. }
  262. void *__radix_tree_lookup(struct radix_tree_root *root, unsigned long index,
  263. struct radix_tree_node **nodep, void ***slotp);
  264. void *radix_tree_lookup(struct radix_tree_root *, unsigned long);
  265. void **radix_tree_lookup_slot(struct radix_tree_root *, unsigned long);
  266. typedef void (*radix_tree_update_node_t)(struct radix_tree_node *, void *);
  267. void __radix_tree_replace(struct radix_tree_root *root,
  268. struct radix_tree_node *node,
  269. void **slot, void *item,
  270. radix_tree_update_node_t update_node, void *private);
  271. void radix_tree_replace_slot(struct radix_tree_root *root,
  272. void **slot, void *item);
  273. void __radix_tree_delete_node(struct radix_tree_root *root,
  274. struct radix_tree_node *node);
  275. void *radix_tree_delete_item(struct radix_tree_root *, unsigned long, void *);
  276. void *radix_tree_delete(struct radix_tree_root *, unsigned long);
  277. void radix_tree_clear_tags(struct radix_tree_root *root,
  278. struct radix_tree_node *node,
  279. void **slot);
  280. unsigned int radix_tree_gang_lookup(struct radix_tree_root *root,
  281. void **results, unsigned long first_index,
  282. unsigned int max_items);
  283. unsigned int radix_tree_gang_lookup_slot(struct radix_tree_root *root,
  284. void ***results, unsigned long *indices,
  285. unsigned long first_index, unsigned int max_items);
  286. int radix_tree_preload(gfp_t gfp_mask);
  287. int radix_tree_maybe_preload(gfp_t gfp_mask);
  288. int radix_tree_maybe_preload_order(gfp_t gfp_mask, int order);
  289. void radix_tree_init(void);
  290. void *radix_tree_tag_set(struct radix_tree_root *root,
  291. unsigned long index, unsigned int tag);
  292. void *radix_tree_tag_clear(struct radix_tree_root *root,
  293. unsigned long index, unsigned int tag);
  294. int radix_tree_tag_get(struct radix_tree_root *root,
  295. unsigned long index, unsigned int tag);
  296. void radix_tree_iter_tag_set(struct radix_tree_root *root,
  297. const struct radix_tree_iter *iter, unsigned int tag);
  298. unsigned int
  299. radix_tree_gang_lookup_tag(struct radix_tree_root *root, void **results,
  300. unsigned long first_index, unsigned int max_items,
  301. unsigned int tag);
  302. unsigned int
  303. radix_tree_gang_lookup_tag_slot(struct radix_tree_root *root, void ***results,
  304. unsigned long first_index, unsigned int max_items,
  305. unsigned int tag);
  306. int radix_tree_tagged(struct radix_tree_root *root, unsigned int tag);
  307. static inline void radix_tree_preload_end(void)
  308. {
  309. preempt_enable();
  310. }
  311. #define RADIX_TREE_ITER_TAG_MASK 0x00FF /* tag index in lower byte */
  312. #define RADIX_TREE_ITER_TAGGED 0x0100 /* lookup tagged slots */
  313. #define RADIX_TREE_ITER_CONTIG 0x0200 /* stop at first hole */
  314. /**
  315. * radix_tree_iter_init - initialize radix tree iterator
  316. *
  317. * @iter: pointer to iterator state
  318. * @start: iteration starting index
  319. * Returns: NULL
  320. */
  321. static __always_inline void **
  322. radix_tree_iter_init(struct radix_tree_iter *iter, unsigned long start)
  323. {
  324. /*
  325. * Leave iter->tags uninitialized. radix_tree_next_chunk() will fill it
  326. * in the case of a successful tagged chunk lookup. If the lookup was
  327. * unsuccessful or non-tagged then nobody cares about ->tags.
  328. *
  329. * Set index to zero to bypass next_index overflow protection.
  330. * See the comment in radix_tree_next_chunk() for details.
  331. */
  332. iter->index = 0;
  333. iter->next_index = start;
  334. return NULL;
  335. }
  336. /**
  337. * radix_tree_next_chunk - find next chunk of slots for iteration
  338. *
  339. * @root: radix tree root
  340. * @iter: iterator state
  341. * @flags: RADIX_TREE_ITER_* flags and tag index
  342. * Returns: pointer to chunk first slot, or NULL if there no more left
  343. *
  344. * This function looks up the next chunk in the radix tree starting from
  345. * @iter->next_index. It returns a pointer to the chunk's first slot.
  346. * Also it fills @iter with data about chunk: position in the tree (index),
  347. * its end (next_index), and constructs a bit mask for tagged iterating (tags).
  348. */
  349. void **radix_tree_next_chunk(struct radix_tree_root *root,
  350. struct radix_tree_iter *iter, unsigned flags);
  351. /**
  352. * radix_tree_iter_retry - retry this chunk of the iteration
  353. * @iter: iterator state
  354. *
  355. * If we iterate over a tree protected only by the RCU lock, a race
  356. * against deletion or creation may result in seeing a slot for which
  357. * radix_tree_deref_retry() returns true. If so, call this function
  358. * and continue the iteration.
  359. */
  360. static inline __must_check
  361. void **radix_tree_iter_retry(struct radix_tree_iter *iter)
  362. {
  363. iter->next_index = iter->index;
  364. iter->tags = 0;
  365. return NULL;
  366. }
  367. static inline unsigned long
  368. __radix_tree_iter_add(struct radix_tree_iter *iter, unsigned long slots)
  369. {
  370. return iter->index + (slots << iter_shift(iter));
  371. }
  372. /**
  373. * radix_tree_iter_resume - resume iterating when the chunk may be invalid
  374. * @slot: pointer to current slot
  375. * @iter: iterator state
  376. * Returns: New slot pointer
  377. *
  378. * If the iterator needs to release then reacquire a lock, the chunk may
  379. * have been invalidated by an insertion or deletion. Call this function
  380. * before releasing the lock to continue the iteration from the next index.
  381. */
  382. void **__must_check radix_tree_iter_resume(void **slot,
  383. struct radix_tree_iter *iter);
  384. /**
  385. * radix_tree_chunk_size - get current chunk size
  386. *
  387. * @iter: pointer to radix tree iterator
  388. * Returns: current chunk size
  389. */
  390. static __always_inline long
  391. radix_tree_chunk_size(struct radix_tree_iter *iter)
  392. {
  393. return (iter->next_index - iter->index) >> iter_shift(iter);
  394. }
  395. #ifdef CONFIG_RADIX_TREE_MULTIORDER
  396. void ** __radix_tree_next_slot(void **slot, struct radix_tree_iter *iter,
  397. unsigned flags);
  398. #else
  399. /* Can't happen without sibling entries, but the compiler can't tell that */
  400. static inline void ** __radix_tree_next_slot(void **slot,
  401. struct radix_tree_iter *iter, unsigned flags)
  402. {
  403. return slot;
  404. }
  405. #endif
  406. /**
  407. * radix_tree_next_slot - find next slot in chunk
  408. *
  409. * @slot: pointer to current slot
  410. * @iter: pointer to interator state
  411. * @flags: RADIX_TREE_ITER_*, should be constant
  412. * Returns: pointer to next slot, or NULL if there no more left
  413. *
  414. * This function updates @iter->index in the case of a successful lookup.
  415. * For tagged lookup it also eats @iter->tags.
  416. *
  417. * There are several cases where 'slot' can be passed in as NULL to this
  418. * function. These cases result from the use of radix_tree_iter_resume() or
  419. * radix_tree_iter_retry(). In these cases we don't end up dereferencing
  420. * 'slot' because either:
  421. * a) we are doing tagged iteration and iter->tags has been set to 0, or
  422. * b) we are doing non-tagged iteration, and iter->index and iter->next_index
  423. * have been set up so that radix_tree_chunk_size() returns 1 or 0.
  424. */
  425. static __always_inline void **
  426. radix_tree_next_slot(void **slot, struct radix_tree_iter *iter, unsigned flags)
  427. {
  428. if (flags & RADIX_TREE_ITER_TAGGED) {
  429. iter->tags >>= 1;
  430. if (unlikely(!iter->tags))
  431. return NULL;
  432. if (likely(iter->tags & 1ul)) {
  433. iter->index = __radix_tree_iter_add(iter, 1);
  434. slot++;
  435. goto found;
  436. }
  437. if (!(flags & RADIX_TREE_ITER_CONTIG)) {
  438. unsigned offset = __ffs(iter->tags);
  439. iter->tags >>= offset++;
  440. iter->index = __radix_tree_iter_add(iter, offset);
  441. slot += offset;
  442. goto found;
  443. }
  444. } else {
  445. long count = radix_tree_chunk_size(iter);
  446. while (--count > 0) {
  447. slot++;
  448. iter->index = __radix_tree_iter_add(iter, 1);
  449. if (likely(*slot))
  450. goto found;
  451. if (flags & RADIX_TREE_ITER_CONTIG) {
  452. /* forbid switching to the next chunk */
  453. iter->next_index = 0;
  454. break;
  455. }
  456. }
  457. }
  458. return NULL;
  459. found:
  460. if (unlikely(radix_tree_is_internal_node(*slot)))
  461. return __radix_tree_next_slot(slot, iter, flags);
  462. return slot;
  463. }
  464. /**
  465. * radix_tree_for_each_slot - iterate over non-empty slots
  466. *
  467. * @slot: the void** variable for pointer to slot
  468. * @root: the struct radix_tree_root pointer
  469. * @iter: the struct radix_tree_iter pointer
  470. * @start: iteration starting index
  471. *
  472. * @slot points to radix tree slot, @iter->index contains its index.
  473. */
  474. #define radix_tree_for_each_slot(slot, root, iter, start) \
  475. for (slot = radix_tree_iter_init(iter, start) ; \
  476. slot || (slot = radix_tree_next_chunk(root, iter, 0)) ; \
  477. slot = radix_tree_next_slot(slot, iter, 0))
  478. /**
  479. * radix_tree_for_each_contig - iterate over contiguous slots
  480. *
  481. * @slot: the void** variable for pointer to slot
  482. * @root: the struct radix_tree_root pointer
  483. * @iter: the struct radix_tree_iter pointer
  484. * @start: iteration starting index
  485. *
  486. * @slot points to radix tree slot, @iter->index contains its index.
  487. */
  488. #define radix_tree_for_each_contig(slot, root, iter, start) \
  489. for (slot = radix_tree_iter_init(iter, start) ; \
  490. slot || (slot = radix_tree_next_chunk(root, iter, \
  491. RADIX_TREE_ITER_CONTIG)) ; \
  492. slot = radix_tree_next_slot(slot, iter, \
  493. RADIX_TREE_ITER_CONTIG))
  494. /**
  495. * radix_tree_for_each_tagged - iterate over tagged slots
  496. *
  497. * @slot: the void** variable for pointer to slot
  498. * @root: the struct radix_tree_root pointer
  499. * @iter: the struct radix_tree_iter pointer
  500. * @start: iteration starting index
  501. * @tag: tag index
  502. *
  503. * @slot points to radix tree slot, @iter->index contains its index.
  504. */
  505. #define radix_tree_for_each_tagged(slot, root, iter, start, tag) \
  506. for (slot = radix_tree_iter_init(iter, start) ; \
  507. slot || (slot = radix_tree_next_chunk(root, iter, \
  508. RADIX_TREE_ITER_TAGGED | tag)) ; \
  509. slot = radix_tree_next_slot(slot, iter, \
  510. RADIX_TREE_ITER_TAGGED | tag))
  511. #endif /* _LINUX_RADIX_TREE_H */