diff options
author | Nathan Scott <nathans@sgi.com> | 2005-11-01 22:38:42 -0500 |
---|---|---|
committer | Nathan Scott <nathans@sgi.com> | 2005-11-01 22:38:42 -0500 |
commit | a844f4510dce23c07f3923cb42138f5fdd745017 (patch) | |
tree | ffb37e9e60f02d5e92bd69bb53b568e1c991c17f /fs/xfs/xfs_bmap.h | |
parent | 61c1e689fbde7cb50a76262bba190715d86beab6 (diff) |
[XFS] Remove xfs_macros.c, xfs_macros.h, rework headers a whole lot.
SGI-PV: 943122
SGI-Modid: xfs-linux:xfs-kern:23901a
Signed-off-by: Nathan Scott <nathans@sgi.com>
Diffstat (limited to 'fs/xfs/xfs_bmap.h')
-rw-r--r-- | fs/xfs/xfs_bmap.h | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/fs/xfs/xfs_bmap.h b/fs/xfs/xfs_bmap.h index e42d1b7777e1..51a9c82f0f62 100644 --- a/fs/xfs/xfs_bmap.h +++ b/fs/xfs/xfs_bmap.h | |||
@@ -77,12 +77,11 @@ typedef struct xfs_bmap_free | |||
77 | /* combine contig. space */ | 77 | /* combine contig. space */ |
78 | #define XFS_BMAPI_CONTIG 0x400 /* must allocate only one extent */ | 78 | #define XFS_BMAPI_CONTIG 0x400 /* must allocate only one extent */ |
79 | 79 | ||
80 | #if XFS_WANT_FUNCS || (XFS_WANT_SPACE && XFSSO_XFS_BMAPI_AFLAG) | ||
81 | int xfs_bmapi_aflag(int w); | ||
82 | #define XFS_BMAPI_AFLAG(w) xfs_bmapi_aflag(w) | 80 | #define XFS_BMAPI_AFLAG(w) xfs_bmapi_aflag(w) |
83 | #else | 81 | static inline int xfs_bmapi_aflag(int w) |
84 | #define XFS_BMAPI_AFLAG(w) ((w) == XFS_ATTR_FORK ? XFS_BMAPI_ATTRFORK : 0) | 82 | { |
85 | #endif | 83 | return (w == XFS_ATTR_FORK ? XFS_BMAPI_ATTRFORK : 0); |
84 | } | ||
86 | 85 | ||
87 | /* | 86 | /* |
88 | * Special values for xfs_bmbt_irec_t br_startblock field. | 87 | * Special values for xfs_bmbt_irec_t br_startblock field. |
@@ -90,14 +89,12 @@ int xfs_bmapi_aflag(int w); | |||
90 | #define DELAYSTARTBLOCK ((xfs_fsblock_t)-1LL) | 89 | #define DELAYSTARTBLOCK ((xfs_fsblock_t)-1LL) |
91 | #define HOLESTARTBLOCK ((xfs_fsblock_t)-2LL) | 90 | #define HOLESTARTBLOCK ((xfs_fsblock_t)-2LL) |
92 | 91 | ||
93 | #if XFS_WANT_FUNCS || (XFS_WANT_SPACE && XFSSO_XFS_BMAP_INIT) | ||
94 | void xfs_bmap_init(xfs_bmap_free_t *flp, xfs_fsblock_t *fbp); | ||
95 | #define XFS_BMAP_INIT(flp,fbp) xfs_bmap_init(flp,fbp) | 92 | #define XFS_BMAP_INIT(flp,fbp) xfs_bmap_init(flp,fbp) |
96 | #else | 93 | static inline void xfs_bmap_init(xfs_bmap_free_t *flp, xfs_fsblock_t *fbp) |
97 | #define XFS_BMAP_INIT(flp,fbp) \ | 94 | { |
98 | ((flp)->xbf_first = NULL, (flp)->xbf_count = 0, \ | 95 | ((flp)->xbf_first = NULL, (flp)->xbf_count = 0, \ |
99 | (flp)->xbf_low = 0, *(fbp) = NULLFSBLOCK) | 96 | (flp)->xbf_low = 0, *(fbp) = NULLFSBLOCK); |
100 | #endif | 97 | } |
101 | 98 | ||
102 | /* | 99 | /* |
103 | * Argument structure for xfs_bmap_alloc. | 100 | * Argument structure for xfs_bmap_alloc. |