Merge of master-melb:xfs-cmds:26418a by kenmcd.
list_add(list, head);
}
+static inline void list_move_tail(struct list_head *list, struct list_head *head)
+{
+ __list_del(list->prev, list->next);
+ list_add_tail(list, head);
+}
+
static inline int list_empty(const struct list_head *head)
{
return head->next == head;
pthread_mutex_lock(&node->cn_mutex);
if (!(inuse = (node->cn_count > 0))) {
hash->ch_count--;
- list_move(&node->cn_list, &temp);
+ list_move_tail(&node->cn_list, &temp);
}
pthread_mutex_unlock(&node->cn_mutex);
if (inuse && !priority)