-#if 0
-/*
- * Transfers streams part of a hard-link group from @old_lte to @new_lte.
- *
- * @dentry is one of the dentries in the hard link group
- * @stream_idx is the index of the stream that we're transferring.
- */
-static void lte_transfer_stream_entries(struct lookup_table_entry *old_lte,
- struct lookup_table_entry *new_lte,
- struct dentry *dentry, unsigned stream_idx)
-{
- INIT_LIST_HEAD(&new_lte->lte_group_list);
-
- if (stream_idx == 0) {
- struct list_head *pos;
- struct stream_list_head *head;
- struct dentry *other_dentry;
- list_for_each(pos, &old_lte->lte_group_list) {
- head = container_of(pos, struct stream_list_head, head);
- if (head->type != STREAM_TYPE_NORMAL) {
- continue;
- other_dentry = container_of(head, struct dentry,
- lte_group_list);
- if (other_dentry->hard_link != dentry->link_group)
- continue;
-
- list_del(&other_dentry->lte_group_list.list);
- list_add(&other_dentry->lte_group_list.list,
- &new_lte->lte_group_list);
- other_dentry->lte = new_lte;
- }
- } else {
- /* ADS entries are shared within a hard link group. */
- lte_load_ads_entry(new_lte, &dentry->ads_entries[stream_idx - 1]);
- }
-}
-static void lte__stream_entries(struct lookup_table_entry *new_lte,
- struct dentry *dentry, unsigned stream_idx)
-{
- INIT_LIST_HEAD(new_lte->lte_group_list);
- if (stream_idx == 0) {
- struct list_head *cur;
- do {
- struct dentry *d;
-
- d = container_of(cur, struct dentry, link_group_list);
- list_del(&d->lte_group_list);
- list_add(&d->lte_group_list, &new_lte->lte_group_list);
- d->lte = new_lte;
- cur = cur->next;
- } while (cur != &dentry->link_group_list);
- } else {
- lte_load_ads_entry(new_lte, &dentry->ads_entries[stream_idx - 1]);
- }
-}
-#endif
-
-