diff options
Diffstat (limited to 'fs/ocfs2/ocfs2.h')
-rw-r--r-- | fs/ocfs2/ocfs2.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/fs/ocfs2/ocfs2.h b/fs/ocfs2/ocfs2.h index 82cc92dcf8a6..a860633e833f 100644 --- a/fs/ocfs2/ocfs2.h +++ b/fs/ocfs2/ocfs2.h | |||
@@ -363,9 +363,9 @@ static inline int ocfs2_mount_local(struct ocfs2_super *osb) | |||
363 | typeof(__di) ____di = (__di); \ | 363 | typeof(__di) ____di = (__di); \ |
364 | ocfs2_error((__sb), \ | 364 | ocfs2_error((__sb), \ |
365 | "Dinode # %llu has bad signature %.*s", \ | 365 | "Dinode # %llu has bad signature %.*s", \ |
366 | (unsigned long long)(____di)->i_blkno, 7, \ | 366 | (unsigned long long)le64_to_cpu((____di)->i_blkno), 7, \ |
367 | (____di)->i_signature); \ | 367 | (____di)->i_signature); \ |
368 | } while (0); | 368 | } while (0) |
369 | 369 | ||
370 | #define OCFS2_IS_VALID_EXTENT_BLOCK(ptr) \ | 370 | #define OCFS2_IS_VALID_EXTENT_BLOCK(ptr) \ |
371 | (!strcmp((ptr)->h_signature, OCFS2_EXTENT_BLOCK_SIGNATURE)) | 371 | (!strcmp((ptr)->h_signature, OCFS2_EXTENT_BLOCK_SIGNATURE)) |
@@ -374,9 +374,9 @@ static inline int ocfs2_mount_local(struct ocfs2_super *osb) | |||
374 | typeof(__eb) ____eb = (__eb); \ | 374 | typeof(__eb) ____eb = (__eb); \ |
375 | ocfs2_error((__sb), \ | 375 | ocfs2_error((__sb), \ |
376 | "Extent Block # %llu has bad signature %.*s", \ | 376 | "Extent Block # %llu has bad signature %.*s", \ |
377 | (unsigned long long)(____eb)->h_blkno, 7, \ | 377 | (unsigned long long)le64_to_cpu((____eb)->h_blkno), 7, \ |
378 | (____eb)->h_signature); \ | 378 | (____eb)->h_signature); \ |
379 | } while (0); | 379 | } while (0) |
380 | 380 | ||
381 | #define OCFS2_IS_VALID_GROUP_DESC(ptr) \ | 381 | #define OCFS2_IS_VALID_GROUP_DESC(ptr) \ |
382 | (!strcmp((ptr)->bg_signature, OCFS2_GROUP_DESC_SIGNATURE)) | 382 | (!strcmp((ptr)->bg_signature, OCFS2_GROUP_DESC_SIGNATURE)) |
@@ -385,9 +385,9 @@ static inline int ocfs2_mount_local(struct ocfs2_super *osb) | |||
385 | typeof(__gd) ____gd = (__gd); \ | 385 | typeof(__gd) ____gd = (__gd); \ |
386 | ocfs2_error((__sb), \ | 386 | ocfs2_error((__sb), \ |
387 | "Group Descriptor # %llu has bad signature %.*s", \ | 387 | "Group Descriptor # %llu has bad signature %.*s", \ |
388 | (unsigned long long)(____gd)->bg_blkno, 7, \ | 388 | (unsigned long long)le64_to_cpu((____gd)->bg_blkno), 7, \ |
389 | (____gd)->bg_signature); \ | 389 | (____gd)->bg_signature); \ |
390 | } while (0); | 390 | } while (0) |
391 | 391 | ||
392 | static inline unsigned long ino_from_blkno(struct super_block *sb, | 392 | static inline unsigned long ino_from_blkno(struct super_block *sb, |
393 | u64 blkno) | 393 | u64 blkno) |