- next_group = group->next;
- u64 cur_id;
- struct list_head *dentry_list = group->dentry_list;
- if (dentry_list->next == dentry_list) {
- /* Hard link group of size 1. Change the hard
- * link ID to 0 and discard the link_group */
- cur_id = 0;
- FREE(group);
- } else {
- /* Hard link group of size > 1. Assign the
- * dentries in the group the next available hard
- * link IDs and queue the group to be
- * re-inserted into the table. */
- cur_id = id++;
- group->next = remaining_groups;
- remaining_groups = group;
- }
- struct list_head *cur = dentry_list;