scan:
spin_lock(lock);
while (!list_empty(head)) {
- libu = list_entry(head->next,
- struct lustre_index_backup_unit, libu_link);
+ libu = list_first_entry(head,
+ struct lustre_index_backup_unit,
+ libu_link);
list_del_init(&libu->libu_link);
spin_unlock(lock);