Don't bother clearing i_devno after inode number reassignment
authorEric Biggers <ebiggers3@gmail.com>
Sun, 31 May 2015 15:55:41 +0000 (10:55 -0500)
committerEric Biggers <ebiggers3@gmail.com>
Fri, 5 Jun 2015 03:45:35 +0000 (22:45 -0500)
src/inode_table.c

index 1eac9466b133e1e4d50fa1ef8324d2a3798839b6..e8ccced99b8f9fa01f2c834d59d7e81422ad0c91 100644 (file)
@@ -151,14 +151,12 @@ inode_table_prepare_inode_list(struct wim_inode_table *table,
        for (size_t i = 0; i < table->capacity; i++) {
                hlist_for_each_entry_safe(inode, tmp, &table->array[i], i_hlist_node) {
                        inode->i_ino = cur_ino++;
-                       inode->i_devno = 0;
                        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++;
-               inode->i_devno = 0;
                hlist_add_head(&inode->i_hlist_node, head);
        }
        INIT_HLIST_HEAD(&table->extra_inodes);