X-Git-Url: https://wimlib.net/git/?a=blobdiff_plain;f=src%2Finode_fixup.c;h=7624562371ea97b1d3557ff5e25cc5cafd2c5ce0;hb=c3648a1bf94a11ee6eff22cb728f0efe3f4500e9;hp=115779a410564c1e0c6bbeb937af907802313e76;hpb=eb0e9745b807ac98d829f70265bb0516313fe86e;p=wimlib diff --git a/src/inode_fixup.c b/src/inode_fixup.c index 115779a4..76245623 100644 --- a/src/inode_fixup.c +++ b/src/inode_fixup.c @@ -5,20 +5,18 @@ /* * Copyright (C) 2012, 2013, 2014 Eric Biggers * - * This file is part of wimlib, a library for working with WIM files. + * This file is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 3 of the License, or (at your option) any + * later version. * - * wimlib is free software; you can redistribute it and/or modify it under the - * terms of the GNU General Public License as published by the Free - * Software Foundation; either version 3 of the License, or (at your option) - * any later version. - * - * wimlib is distributed in the hope that it will be useful, but WITHOUT ANY - * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR - * A PARTICULAR PURPOSE. See the GNU General Public License for more + * This file is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more * details. * - * You should have received a copy of the GNU General Public License - * along with wimlib; if not, see http://www.gnu.org/licenses/. + * You should have received a copy of the GNU Lesser General Public License + * along with this file; if not, see http://www.gnu.org/licenses/. */ #ifdef HAVE_CONFIG_H @@ -29,7 +27,6 @@ #include "wimlib/error.h" #include "wimlib/inode.h" #include "wimlib/inode_table.h" -#include "wimlib/lookup_table.h" struct inode_fixup_params { struct wim_inode_table inode_table; @@ -105,10 +102,8 @@ inode_table_insert(struct wim_dentry *dentry, void *_params) continue; } /* Transfer this dentry to the existing inode. */ - free_inode(d_inode); - dentry->d_inode = inode; - inode->i_nlink++; - inode_add_dentry(dentry, inode); + d_disassociate(dentry); + d_associate(dentry, inode); return 0; }