X-Git-Url: https://wimlib.net/git/?p=wimlib;a=blobdiff_plain;f=include%2Fwimlib%2Finode.h;h=11c2361b81bf5da59dd6b2e71fe9d7c46c28f9b5;hp=4b9567757aa1ba2f8fd78ac0d1a25c4c9867678e;hb=b5fae0e5ddac332b25856e3df7556aa3ee7f69fb;hpb=814c6f33ee61315286430e5f0044a40061e94b82 diff --git a/include/wimlib/inode.h b/include/wimlib/inode.h index 4b956775..11c2361b 100644 --- a/include/wimlib/inode.h +++ b/include/wimlib/inode.h @@ -304,21 +304,10 @@ new_inode(void) _malloc_attribute; extern struct wim_inode * new_timeless_inode(void) _malloc_attribute; -extern void -put_inode(struct wim_inode *inode); - -extern void -free_inode(struct wim_inode *inode); - /* Iterate through each alias of the specified inode. */ #define inode_for_each_dentry(dentry, inode) \ list_for_each_entry((dentry), &(inode)->i_dentry, d_alias) -/* Add a new alias for the specified inode. Does not increment i_nlink; that - * must be done separately if needed. */ -#define inode_add_dentry(dentry, inode) \ - list_add_tail(&(dentry)->d_alias, &(inode)->i_dentry) - /* Return an alias of the specified inode. */ #define inode_first_dentry(inode) \ container_of(inode->i_dentry.next, struct wim_dentry, d_alias) @@ -328,6 +317,17 @@ free_inode(struct wim_inode *inode); #define inode_first_full_path(inode) \ dentry_full_path(inode_first_dentry(inode)) +extern void +d_associate(struct wim_dentry *dentry, struct wim_inode *inode); + +extern void +d_disassociate(struct wim_dentry *dentry); + +#ifdef WITH_FUSE +extern void +inode_dec_num_opened_fds(struct wim_inode *inode); +#endif + /* Is the inode a directory? * This doesn't count directories with reparse data. * wimlib only allows inodes of this type to have children.