X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/8f6c56a50524aa785f7e596d52dddfb331e18961..89b3af67bb32e691275bf6fa803d1834b2284115:/bsd/sys/quota.h?ds=sidebyside diff --git a/bsd/sys/quota.h b/bsd/sys/quota.h index 768f51ca1..570dde533 100644 --- a/bsd/sys/quota.h +++ b/bsd/sys/quota.h @@ -178,10 +178,6 @@ struct dqblk { * WARNING - keep in sync with struct dqblk */ -#if __DARWIN_ALIGN_NATURAL -#pragma options align=natural -#endif - struct user_dqblk { u_int64_t dqb_bhardlimit; /* absolute limit on disk bytes alloc */ u_int64_t dqb_bsoftlimit; /* preferred limit on disk bytes */ @@ -189,15 +185,11 @@ struct user_dqblk { u_int32_t dqb_ihardlimit; /* maximum # allocated inodes + 1 */ u_int32_t dqb_isoftlimit; /* preferred inode limit */ u_int32_t dqb_curinodes; /* current # allocated inodes */ - user_time_t dqb_btime; /* time limit for excessive disk use */ + user_time_t dqb_btime __attribute((aligned(8))); /* time limit for excessive disk use */ user_time_t dqb_itime; /* time limit for excessive files */ u_int32_t dqb_id; /* identifier (0 for empty entries) */ u_int32_t dqb_spare[4]; /* pad struct to power of 2 */ }; - -#if __DARWIN_ALIGN_NATURAL -#pragma options align=reset -#endif #endif /* KERNEL_PRIVATE */ #define INITQMAGICS { \ @@ -297,8 +289,8 @@ struct quotafile { struct dquot { LIST_ENTRY(dquot) dq_hash; /* hash list */ TAILQ_ENTRY(dquot) dq_freelist; /* free list */ + uint32_t dq_cnt; /* count of active references */ u_int16_t dq_flags; /* flags, see below */ - u_int16_t dq_cnt; /* count of active references */ u_int16_t dq_lflags; /* protected by the quota list lock */ u_int16_t dq_type; /* quota type of this dquot */ u_int32_t dq_id; /* identifier this applies to */