]> wimlib.net Git - wimlib/blobdiff - include/wimlib/dentry.h
Use macros to iterate through extraction aliases
[wimlib] / include / wimlib / dentry.h
index 40a4c8e67d7e259a5be7a69a2dd2e5a6dc63fa71..74cb7ad6be1d03f2e4ad30c4cfdad74bc6b20757 100644 (file)
@@ -57,7 +57,7 @@ struct wim_dentry {
 
        /* Linked list node that places this dentry in the list of aliases for
         * its inode (d_inode) */
-       struct list_head d_alias;
+       struct hlist_node d_alias;
 
        /* Pointer to the UTF-16LE short filename (malloc()ed buffer), or NULL
         * if this dentry has no short name.  */
@@ -122,12 +122,6 @@ struct wim_dentry {
        struct list_head d_extraction_alias_node;
 };
 
-static inline bool
-dentry_is_first_in_inode(const struct wim_dentry *dentry)
-{
-       return inode_first_dentry(dentry->d_inode) == dentry;
-}
-
 static inline bool
 will_extract_dentry(const struct wim_dentry *dentry)
 {