diff options
Diffstat (limited to 'fs')
-rw-r--r-- | fs/xfs/xfs_ialloc_btree.h | 8 | ||||
-rw-r--r-- | fs/xfs/xfs_macros.c | 5 |
2 files changed, 11 insertions, 2 deletions
diff --git a/fs/xfs/xfs_ialloc_btree.h b/fs/xfs/xfs_ialloc_btree.h index 803c4d17a057..44be188674a6 100644 --- a/fs/xfs/xfs_ialloc_btree.h +++ b/fs/xfs/xfs_ialloc_btree.h | |||
@@ -100,9 +100,13 @@ xfs_inofree_t xfs_inobt_mask(int i); | |||
100 | #endif | 100 | #endif |
101 | #if XFS_WANT_FUNCS || (XFS_WANT_SPACE && XFSSO_XFS_INOBT_IS_FREE) | 101 | #if XFS_WANT_FUNCS || (XFS_WANT_SPACE && XFSSO_XFS_INOBT_IS_FREE) |
102 | int xfs_inobt_is_free(xfs_inobt_rec_t *rp, int i); | 102 | int xfs_inobt_is_free(xfs_inobt_rec_t *rp, int i); |
103 | #define XFS_INOBT_IS_FREE(rp,i) xfs_inobt_is_free(rp,i) | 103 | #define XFS_INOBT_IS_FREE(rp,i) xfs_inobt_is_free(rp,i) |
104 | #define XFS_INOBT_IS_FREE_DISK(rp,i) xfs_inobt_is_free_disk(rp,i) | ||
104 | #else | 105 | #else |
105 | #define XFS_INOBT_IS_FREE(rp,i) (((rp)->ir_free & XFS_INOBT_MASK(i)) != 0) | 106 | #define XFS_INOBT_IS_FREE(rp,i) \ |
107 | (((rp)->ir_free & XFS_INOBT_MASK(i)) != 0) | ||
108 | #define XFS_INOBT_IS_FREE_DISK(rp,i) \ | ||
109 | ((INT_GET((rp)->ir_free, ARCH_CONVERT) & XFS_INOBT_MASK(i)) != 0) | ||
106 | #endif | 110 | #endif |
107 | #if XFS_WANT_FUNCS || (XFS_WANT_SPACE && XFSSO_XFS_INOBT_SET_FREE) | 111 | #if XFS_WANT_FUNCS || (XFS_WANT_SPACE && XFSSO_XFS_INOBT_SET_FREE) |
108 | void xfs_inobt_set_free(xfs_inobt_rec_t *rp, int i); | 112 | void xfs_inobt_set_free(xfs_inobt_rec_t *rp, int i); |
diff --git a/fs/xfs/xfs_macros.c b/fs/xfs/xfs_macros.c index ce4f46c6b3ab..698c2cd62858 100644 --- a/fs/xfs/xfs_macros.c +++ b/fs/xfs/xfs_macros.c | |||
@@ -1658,6 +1658,11 @@ xfs_inobt_is_free(xfs_inobt_rec_t *rp, int i) | |||
1658 | { | 1658 | { |
1659 | return XFS_INOBT_IS_FREE(rp, i); | 1659 | return XFS_INOBT_IS_FREE(rp, i); |
1660 | } | 1660 | } |
1661 | int | ||
1662 | xfs_inobt_is_free_disk(xfs_inobt_rec_t *rp, int i) | ||
1663 | { | ||
1664 | return XFS_INOBT_IS_FREE_DISK(rp, i); | ||
1665 | } | ||
1661 | #endif | 1666 | #endif |
1662 | 1667 | ||
1663 | #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_INOBT_IS_LAST_REC) | 1668 | #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_INOBT_IS_LAST_REC) |