aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_da_format.h
diff options
context:
space:
mode:
Diffstat (limited to 'fs/xfs/xfs_da_format.h')
-rw-r--r--fs/xfs/xfs_da_format.h10
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 */
543static inline xfs_dir2_off_t 543static inline xfs_dir2_off_t
544xfs_dir2_dataptr_to_byte(struct xfs_mount *mp, xfs_dir2_dataptr_t dp) 544xfs_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 */
552static inline xfs_dir2_dataptr_t 552static inline xfs_dir2_dataptr_t
553xfs_dir2_byte_to_dataptr(struct xfs_mount *mp, xfs_dir2_off_t by) 553xfs_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)
571static inline xfs_dir2_db_t 571static inline xfs_dir2_db_t
572xfs_dir2_dataptr_to_db(struct xfs_mount *mp, xfs_dir2_dataptr_t dp) 572xfs_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)
590static inline xfs_dir2_data_aoff_t 590static inline xfs_dir2_data_aoff_t
591xfs_dir2_dataptr_to_off(struct xfs_mount *mp, xfs_dir2_dataptr_t dp) 591xfs_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
629xfs_dir2_db_off_to_dataptr(struct xfs_mount *mp, xfs_dir2_db_t db, 629xfs_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/*