> #define XFS_DQ_ALLTYPES (XFS_DQ_USER|XFS_DQ_PROJ|XFS_DQ_GROUP) > > +#define XFS_DQ_ONDISK (XFS_DQ_ALLTYPES) > + I really wonder if we should split the on-disk type and the in-core flags properly instead. That is propagate the u8 flags from the on-disk field directly, and use a separate field for the in-memory flags dirty and freeing flags, as that this kind of mixing up is bound to eventually create problems.