inode_table: don't bother clearing array while preparing list
authorEric Biggers <ebiggers3@gmail.com>
Mon, 18 Jan 2016 06:08:02 +0000 (00:08 -0600)
committerEric Biggers <ebiggers3@gmail.com>
Fri, 22 Jan 2016 02:45:33 +0000 (20:45 -0600)
src/inode_table.c

index 248d022..5955580 100644 (file)
@@ -184,11 +184,9 @@ inode_table_prepare_inode_list(struct wim_inode_table *table,
                        inode->i_ino = cur_ino++;
                        hlist_add_head(&inode->i_hlist_node, head);
                }
                        inode->i_ino = cur_ino++;
                        hlist_add_head(&inode->i_hlist_node, head);
                }
-               INIT_HLIST_HEAD(&table->array[i]);
        }
        hlist_for_each_entry_safe(inode, tmp, &table->extra_inodes, i_hlist_node) {
                inode->i_ino = cur_ino++;
                hlist_add_head(&inode->i_hlist_node, head);
        }
        }
        hlist_for_each_entry_safe(inode, tmp, &table->extra_inodes, i_hlist_node) {
                inode->i_ino = cur_ino++;
                hlist_add_head(&inode->i_hlist_node, head);
        }
-       INIT_HLIST_HEAD(&table->extra_inodes);
 }
 }