History

xarray: Add XArray load operation

The xa_load function brings with it a lot of infrastructure; xa_empty(), xa_is_err(), and large chunks of the XArray advanced API that are used to implement xa_load. As the test-suite demonstrates, it is possible to use the XArray functions on a radix tree. The radix tree functions depend on the GFP flags being stored in the root of the tree, so it's not possible to use the radix tree functions on an XArray.

Matthew Wilcox committed 9 years ago

Commit ad3d6c71 parent 992a8e614 files · +661 −45Browse files

Showing the changes to tools/include/linux (1 of 14 files). Show all

Unified · Split

tools/include/linux/kernel.h+1−0
@@ -70,6 +70,7 @@ · 69 unmodified lines
7070 #define BUG_ON(cond) assert(!(cond))
7171 #endif
7272 #endif
73+#define BUG() BUG_ON(1)
7374
7475 #if __BYTE_ORDER == __BIG_ENDIAN
7576 #define cpu_to_le16 bswap_16

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t