Add support for runtime log compression
[fio.git] / flist.h
diff --git a/flist.h b/flist.h
index 8e1304142cc3d3468b79f75872e534220626ce59..938ce1d8317378e18b5824128ac7c4b37f4ff893 100644 (file)
--- a/flist.h
+++ b/flist.h
@@ -140,6 +140,13 @@ static inline void flist_splice(const struct flist_head *list,
                __flist_splice(list, head, head->next);
 }
 
+static inline void flist_splice_tail(struct flist_head *list,
+                                    struct flist_head *head)
+{
+       if (!flist_empty(list))
+               __flist_splice(list, head->prev, head);
+}
+
 static inline void flist_splice_init(struct flist_head *list,
                                    struct flist_head *head)
 {