X-Git-Url: https://wimlib.net/git/?a=blobdiff_plain;ds=sidebyside;f=src%2Fdentry.h;h=b51000a28ff871949caae9f28a1439903fdbb34b;hb=aa882e9bb92d998707484d7f6f56e9cf109a7c62;hp=cea2c5478ff2e0a2e64642fc146026c313154b8b;hpb=90fc012db55046e9f7fad85e3e1b0dcae68191f4;p=wimlib diff --git a/src/dentry.h b/src/dentry.h index cea2c547..b51000a2 100644 --- a/src/dentry.h +++ b/src/dentry.h @@ -296,6 +296,12 @@ static inline bool dentry_is_extracted(const struct dentry *dentry) return dentry->is_extracted; } +static inline bool dentry_is_first_in_inode(const struct dentry *dentry) +{ + return container_of(dentry->d_inode->dentry_list.next, + struct dentry, + inode_dentry_list) == dentry; +} extern u64 dentry_correct_total_length(const struct dentry *dentry); @@ -342,13 +348,6 @@ extern int increment_dentry_refcnt(struct dentry *dentry, void *ignore); extern void unlink_dentry(struct dentry *dentry); extern void link_dentry(struct dentry *dentry, struct dentry *parent); -extern void calculate_dir_tree_statistics(struct dentry *root, - struct lookup_table *table, - u64 *dir_count_ret, - u64 *file_count_ret, - u64 *total_bytes_ret, - u64 *hard_link_bytes_ret); - extern int verify_dentry(struct dentry *dentry, void *wim);