projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
File truncation and extend fixes
[fio.git]
/
list.h
diff --git
a/list.h
b/list.h
index 2e0a7ad7eae671a3b0d20706dc9d741f549ab4eb..cedbafaae022de9267bcfd02296410a0b42c3465 100644
(file)
--- a/
list.h
+++ b/
list.h
@@
-28,6
+28,9
@@
struct list_head {
#define LIST_HEAD_INIT(name) { &(name), &(name) }
+#define LIST_HEAD(name) \
+ struct list_head name = LIST_HEAD_INIT(name)
+
#define INIT_LIST_HEAD(ptr) do { \
(ptr)->next = (ptr); (ptr)->prev = (ptr); \
} while (0)