diff options
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. |