(long long)(int)offsetof(struct obd_statfs, os_spare9));
LASSERTF((int)sizeof(((struct obd_statfs *)0)->os_spare9) == 4, "found %lld\n",
(long long)(int)sizeof(((struct obd_statfs *)0)->os_spare9));
- LASSERTF(OS_STATE_DEGRADED == 0x1, "found %lld\n",
- (long long)OS_STATE_DEGRADED);
- LASSERTF(OS_STATE_READONLY == 0x2, "found %lld\n",
- (long long)OS_STATE_READONLY);
- LASSERTF(OS_STATE_NOPRECREATE == 0x4, "found %lld\n",
- (long long)OS_STATE_NOPRECREATE);
- LASSERTF(OS_STATE_ENOSPC == 0x20, "found %lld\n",
- (long long)OS_STATE_ENOSPC);
- LASSERTF(OS_STATE_ENOINO == 0x40, "found %lld\n",
- (long long)OS_STATE_ENOINO);
- LASSERTF(OS_STATE_SUM == 0x100, "found %lld\n",
- (long long)OS_STATE_SUM);
- LASSERTF(OS_STATE_NONROT == 0x200, "found %lld\n",
- (long long)OS_STATE_NONROT);
+ LASSERTF(OS_STATE_DEGRADED == 0x00000001UL, "found 0x%.8xUL\n",
+ (unsigned)OS_STATE_DEGRADED);
+ LASSERTF(OS_STATE_READONLY == 0x00000002UL, "found 0x%.8xUL\n",
+ (unsigned)OS_STATE_READONLY);
+ LASSERTF(OS_STATE_NOPRECREATE == 0x00000004UL, "found 0x%.8xUL\n",
+ (unsigned)OS_STATE_NOPRECREATE);
+ LASSERTF(OS_STATE_ENOSPC == 0x00000020UL, "found 0x%.8xUL\n",
+ (unsigned)OS_STATE_ENOSPC);
+ LASSERTF(OS_STATE_ENOINO == 0x00000040UL, "found 0x%.8xUL\n",
+ (unsigned)OS_STATE_ENOINO);
+ LASSERTF(OS_STATE_SUM == 0x00000100UL, "found 0x%.8xUL\n",
+ (unsigned)OS_STATE_SUM);
+ LASSERTF(OS_STATE_NONROT == 0x00000200UL, "found 0x%.8xUL\n",
+ (unsigned)OS_STATE_NONROT);
/* Checks for struct obd_ioobj */
LASSERTF((int)sizeof(struct obd_ioobj) == 24, "found %lld\n",
(unsigned)LUSTRE_DIRECTIO_FL);
LASSERTF(LUSTRE_INLINE_DATA_FL == 0x10000000UL, "found 0x%.8xUL\n",
(unsigned)LUSTRE_INLINE_DATA_FL);
- LASSERTF(MDS_INODELOCK_LOOKUP == 0x000001, "found 0x%.8x\n",
- MDS_INODELOCK_LOOKUP);
- LASSERTF(MDS_INODELOCK_UPDATE == 0x000002, "found 0x%.8x\n",
- MDS_INODELOCK_UPDATE);
- LASSERTF(MDS_INODELOCK_OPEN == 0x000004, "found 0x%.8x\n",
- MDS_INODELOCK_OPEN);
- LASSERTF(MDS_INODELOCK_LAYOUT == 0x000008, "found 0x%.8x\n",
- MDS_INODELOCK_LAYOUT);
- LASSERTF(MDS_INODELOCK_PERM == 0x000010, "found 0x%.8x\n",
- MDS_INODELOCK_PERM);
- LASSERTF(MDS_INODELOCK_XATTR == 0x000020, "found 0x%.8x\n",
- MDS_INODELOCK_XATTR);
- LASSERTF(MDS_INODELOCK_DOM == 0x000040, "found 0x%.8x\n",
- MDS_INODELOCK_DOM);
+ LASSERTF(MDS_INODELOCK_LOOKUP == 0x00000001UL, "found 0x%.8xUL\n",
+ (unsigned)MDS_INODELOCK_LOOKUP);
+ LASSERTF(MDS_INODELOCK_UPDATE == 0x00000002UL, "found 0x%.8xUL\n",
+ (unsigned)MDS_INODELOCK_UPDATE);
+ LASSERTF(MDS_INODELOCK_OPEN == 0x00000004UL, "found 0x%.8xUL\n",
+ (unsigned)MDS_INODELOCK_OPEN);
+ LASSERTF(MDS_INODELOCK_LAYOUT == 0x00000008UL, "found 0x%.8xUL\n",
+ (unsigned)MDS_INODELOCK_LAYOUT);
+ LASSERTF(MDS_INODELOCK_PERM == 0x00000010UL, "found 0x%.8xUL\n",
+ (unsigned)MDS_INODELOCK_PERM);
+ LASSERTF(MDS_INODELOCK_XATTR == 0x00000020UL, "found 0x%.8xUL\n",
+ (unsigned)MDS_INODELOCK_XATTR);
+ LASSERTF(MDS_INODELOCK_DOM == 0x00000040UL, "found 0x%.8xUL\n",
+ (unsigned)MDS_INODELOCK_DOM);
/* Checks for struct mdt_ioepoch */
LASSERTF((int)sizeof(struct mdt_ioepoch) == 24, "found %lld\n",
BUILD_BUG_ON(FIEMAP_EXTENT_NO_DIRECT != 0x40000000);
BUILD_BUG_ON(FIEMAP_EXTENT_NET != 0x80000000);
-#ifdef CONFIG_LUSTRE_FS_POSIX_ACL
+#ifdef CONFIG_FS_POSIX_ACL
/* Checks for type posix_acl_xattr_entry */
LASSERTF((int)sizeof(posix_acl_xattr_entry) == 8, "found %lld\n",
(long long)(int)sizeof(posix_acl_xattr_entry));
(long long)(int)offsetof(posix_acl_xattr_entry, e_id));
LASSERTF((int)sizeof(((posix_acl_xattr_entry *)0)->e_id) == 4, "found %lld\n",
(long long)(int)sizeof(((posix_acl_xattr_entry *)0)->e_id));
-#endif /* CONFIG_LUSTRE_FS_POSIX_ACL */
+#endif /* CONFIG_FS_POSIX_ACL */
-#ifdef CONFIG_LUSTRE_FS_POSIX_ACL
+#ifdef CONFIG_FS_POSIX_ACL
/* Checks for type posix_acl_xattr_header */
LASSERTF((int)sizeof(posix_acl_xattr_header) == 4, "found %lld\n",
(long long)(int)sizeof(posix_acl_xattr_header));
LASSERTF((int)sizeof(((posix_acl_xattr_header *)0)->a_entries) == 0, "found %lld\n",
(long long)(int)sizeof(((posix_acl_xattr_header *)0)->a_entries));
#endif /* HAVE_STRUCT_POSIX_ACL_XATTR */
-#endif /* CONFIG_LUSTRE_FS_POSIX_ACL */
+#endif /* CONFIG_FS_POSIX_ACL */
/* Checks for struct link_ea_header */
LASSERTF((int)sizeof(struct link_ea_header) == 24, "found %lld\n",