diff options
author | Christoph Hellwig <hch@sgi.com> | 2005-06-21 01:40:20 -0400 |
---|---|---|
committer | Nathan Scott <nathans@sgi.com> | 2005-06-21 01:40:20 -0400 |
commit | 48fab6bf5f8baf0d16b20a35e537719d14b66275 (patch) | |
tree | 3243d398d195cdeff5c392695c72956525af87b8 /fs/xfs/xfs_ialloc_btree.h | |
parent | 6add2c4288801bd7fd0a4cc3277de7688f1f6714 (diff) |
[XFS] add XFS_INOBT_IS_FREE_DISK
SGI-PV: 928382
SGI-Modid: xfs-linux:xfs-kern:193778a
Signed-off-by: Christoph Hellwig <hch@sgi.com>
Signed-off-by: Nathan Scott <nathans@sgi.com>
Diffstat (limited to 'fs/xfs/xfs_ialloc_btree.h')
-rw-r--r-- | fs/xfs/xfs_ialloc_btree.h | 8 |
1 files changed, 6 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); |