projects
/
fio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
e391c70
)
flist: add flist_last_entry()
author
Jens Axboe
<axboe@fb.com>
Thu, 19 May 2016 14:25:05 +0000
(08:25 -0600)
committer
Jens Axboe
<axboe@fb.com>
Thu, 19 May 2016 14:25:05 +0000
(08:25 -0600)
Signed-off-by: Jens Axboe <axboe@fb.com>
flist.h
patch
|
blob
|
blame
|
history
diff --git
a/flist.h
b/flist.h
index d453e791e9072eb67b37c5ff6038bf8ff8eae2fc..b4fe6e65f10f2c1dfb02943a0680c7c35e1cc0b6 100644
(file)
--- a/
flist.h
+++ b/
flist.h
@@
-177,6
+177,9
@@
static inline void flist_splice_init(struct flist_head *list,
#define flist_first_entry(ptr, type, member) \
flist_entry((ptr)->next, type, member)
+#define flist_last_entry(ptr, type, member) \
+ flist_entry((ptr)->prev, type, member)
+
/**
* flist_for_each - iterate over a list
* @pos: the &struct flist_head to use as a loop counter.