diff options
Diffstat (limited to 'fs/xfs/xfs_da_format.h')
-rw-r--r-- | fs/xfs/xfs_da_format.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/fs/xfs/xfs_da_format.h b/fs/xfs/xfs_da_format.h index a19d3f8f639c..1432b576b4a7 100644 --- a/fs/xfs/xfs_da_format.h +++ b/fs/xfs/xfs_da_format.h | |||
@@ -541,7 +541,7 @@ xfs_dir2_leaf_bests_p(struct xfs_dir2_leaf_tail *ltp) | |||
541 | * Convert dataptr to byte in file space | 541 | * Convert dataptr to byte in file space |
542 | */ | 542 | */ |
543 | static inline xfs_dir2_off_t | 543 | static inline xfs_dir2_off_t |
544 | xfs_dir2_dataptr_to_byte(struct xfs_mount *mp, xfs_dir2_dataptr_t dp) | 544 | xfs_dir2_dataptr_to_byte(xfs_dir2_dataptr_t dp) |
545 | { | 545 | { |
546 | return (xfs_dir2_off_t)dp << XFS_DIR2_DATA_ALIGN_LOG; | 546 | return (xfs_dir2_off_t)dp << XFS_DIR2_DATA_ALIGN_LOG; |
547 | } | 547 | } |
@@ -550,7 +550,7 @@ xfs_dir2_dataptr_to_byte(struct xfs_mount *mp, xfs_dir2_dataptr_t dp) | |||
550 | * Convert byte in file space to dataptr. It had better be aligned. | 550 | * Convert byte in file space to dataptr. It had better be aligned. |
551 | */ | 551 | */ |
552 | static inline xfs_dir2_dataptr_t | 552 | static inline xfs_dir2_dataptr_t |
553 | xfs_dir2_byte_to_dataptr(struct xfs_mount *mp, xfs_dir2_off_t by) | 553 | xfs_dir2_byte_to_dataptr(xfs_dir2_off_t by) |
554 | { | 554 | { |
555 | return (xfs_dir2_dataptr_t)(by >> XFS_DIR2_DATA_ALIGN_LOG); | 555 | return (xfs_dir2_dataptr_t)(by >> XFS_DIR2_DATA_ALIGN_LOG); |
556 | } | 556 | } |
@@ -571,7 +571,7 @@ xfs_dir2_byte_to_db(struct xfs_mount *mp, xfs_dir2_off_t by) | |||
571 | static inline xfs_dir2_db_t | 571 | static inline xfs_dir2_db_t |
572 | xfs_dir2_dataptr_to_db(struct xfs_mount *mp, xfs_dir2_dataptr_t dp) | 572 | xfs_dir2_dataptr_to_db(struct xfs_mount *mp, xfs_dir2_dataptr_t dp) |
573 | { | 573 | { |
574 | return xfs_dir2_byte_to_db(mp, xfs_dir2_dataptr_to_byte(mp, dp)); | 574 | return xfs_dir2_byte_to_db(mp, xfs_dir2_dataptr_to_byte(dp)); |
575 | } | 575 | } |
576 | 576 | ||
577 | /* | 577 | /* |
@@ -590,7 +590,7 @@ xfs_dir2_byte_to_off(struct xfs_mount *mp, xfs_dir2_off_t by) | |||
590 | static inline xfs_dir2_data_aoff_t | 590 | static inline xfs_dir2_data_aoff_t |
591 | xfs_dir2_dataptr_to_off(struct xfs_mount *mp, xfs_dir2_dataptr_t dp) | 591 | xfs_dir2_dataptr_to_off(struct xfs_mount *mp, xfs_dir2_dataptr_t dp) |
592 | { | 592 | { |
593 | return xfs_dir2_byte_to_off(mp, xfs_dir2_dataptr_to_byte(mp, dp)); | 593 | return xfs_dir2_byte_to_off(mp, xfs_dir2_dataptr_to_byte(dp)); |
594 | } | 594 | } |
595 | 595 | ||
596 | /* | 596 | /* |
@@ -629,7 +629,7 @@ static inline xfs_dir2_dataptr_t | |||
629 | xfs_dir2_db_off_to_dataptr(struct xfs_mount *mp, xfs_dir2_db_t db, | 629 | xfs_dir2_db_off_to_dataptr(struct xfs_mount *mp, xfs_dir2_db_t db, |
630 | xfs_dir2_data_aoff_t o) | 630 | xfs_dir2_data_aoff_t o) |
631 | { | 631 | { |
632 | return xfs_dir2_byte_to_dataptr(mp, xfs_dir2_db_off_to_byte(mp, db, o)); | 632 | return xfs_dir2_byte_to_dataptr(xfs_dir2_db_off_to_byte(mp, db, o)); |
633 | } | 633 | } |
634 | 634 | ||
635 | /* | 635 | /* |