From: Eric Biggers Date: Sun, 31 May 2015 05:21:27 +0000 (-0500) Subject: Save memory by consolidating inode flags X-Git-Tag: v1.8.2~95 X-Git-Url: https://wimlib.net/git/?p=wimlib;a=commitdiff_plain;h=c86ddf3cb6c5d52e3509ff4c2326f51fd98014e2;ds=sidebyside Save memory by consolidating inode flags --- diff --git a/include/wimlib/inode.h b/include/wimlib/inode.h index 20e1b5cc..f9b97cf8 100644 --- a/include/wimlib/inode.h +++ b/include/wimlib/inode.h @@ -127,16 +127,16 @@ struct wim_inode { struct hlist_node i_hlist; /* Number of dentries that are aliases for this inode. */ - u32 i_nlink; + u32 i_nlink : 30; /* Flag used to mark this inode as visited; this is used when visiting * all the inodes in a dentry tree exactly once. It will be 0 by * default and must be cleared following the tree traversal, even in * error paths. */ - u8 i_visited : 1; + u32 i_visited : 1; /* Cached value */ - u8 i_can_externally_back : 1; + u32 i_can_externally_back : 1; /* If not NULL, a pointer to the extra data that was read from the * dentry. This should be a series of tagged items, each of which