-/* Calculates the unaligned length, in bytes, of an on-disk WIM dentry, based on
- * the file name length, short name length, and optional tagged items. Note
- * that dentry->length is ignored; also, this excludes any alternate data stream
- * entries that may follow the dentry. */
-static u64
-dentry_correct_length_aligned(const struct wim_dentry *dentry)
-{
- u64 len;
-
- len = dentry_correct_length_unaligned(dentry->file_name_nbytes,
- dentry->short_name_nbytes);
-
- if (dentry->d_inode->i_extra_size) {
- len = (len + 7) & ~7;
- len += dentry->d_inode->i_extra_size;
- }
-
- return (len + 7) & ~7;
-}
-