diff options
Diffstat (limited to 'fs/xfs/xfs_alloc.h')
-rw-r--r-- | fs/xfs/xfs_alloc.h | 25 |
1 files changed, 20 insertions, 5 deletions
diff --git a/fs/xfs/xfs_alloc.h b/fs/xfs/xfs_alloc.h index 895009a97271..0ab56b32c7eb 100644 --- a/fs/xfs/xfs_alloc.h +++ b/fs/xfs/xfs_alloc.h | |||
@@ -19,6 +19,7 @@ | |||
19 | #define __XFS_ALLOC_H__ | 19 | #define __XFS_ALLOC_H__ |
20 | 20 | ||
21 | struct xfs_buf; | 21 | struct xfs_buf; |
22 | struct xfs_btree_cur; | ||
22 | struct xfs_mount; | 23 | struct xfs_mount; |
23 | struct xfs_perag; | 24 | struct xfs_perag; |
24 | struct xfs_trans; | 25 | struct xfs_trans; |
@@ -118,16 +119,16 @@ xfs_alloc_longest_free_extent(struct xfs_mount *mp, | |||
118 | struct xfs_perag *pag); | 119 | struct xfs_perag *pag); |
119 | 120 | ||
120 | #ifdef __KERNEL__ | 121 | #ifdef __KERNEL__ |
121 | |||
122 | void | 122 | void |
123 | xfs_alloc_busy_insert(xfs_trans_t *tp, | 123 | xfs_alloc_busy_insert(struct xfs_trans *tp, xfs_agnumber_t agno, |
124 | xfs_agnumber_t agno, | 124 | xfs_agblock_t bno, xfs_extlen_t len); |
125 | xfs_agblock_t bno, | ||
126 | xfs_extlen_t len); | ||
127 | 125 | ||
128 | void | 126 | void |
129 | xfs_alloc_busy_clear(struct xfs_mount *mp, struct xfs_busy_extent *busyp); | 127 | xfs_alloc_busy_clear(struct xfs_mount *mp, struct xfs_busy_extent *busyp); |
130 | 128 | ||
129 | int | ||
130 | xfs_alloc_busy_search(struct xfs_mount *mp, xfs_agnumber_t agno, | ||
131 | xfs_agblock_t bno, xfs_extlen_t len); | ||
131 | #endif /* __KERNEL__ */ | 132 | #endif /* __KERNEL__ */ |
132 | 133 | ||
133 | /* | 134 | /* |
@@ -205,4 +206,18 @@ xfs_free_extent( | |||
205 | xfs_fsblock_t bno, /* starting block number of extent */ | 206 | xfs_fsblock_t bno, /* starting block number of extent */ |
206 | xfs_extlen_t len); /* length of extent */ | 207 | xfs_extlen_t len); /* length of extent */ |
207 | 208 | ||
209 | int /* error */ | ||
210 | xfs_alloc_lookup_le( | ||
211 | struct xfs_btree_cur *cur, /* btree cursor */ | ||
212 | xfs_agblock_t bno, /* starting block of extent */ | ||
213 | xfs_extlen_t len, /* length of extent */ | ||
214 | int *stat); /* success/failure */ | ||
215 | |||
216 | int /* error */ | ||
217 | xfs_alloc_get_rec( | ||
218 | struct xfs_btree_cur *cur, /* btree cursor */ | ||
219 | xfs_agblock_t *bno, /* output: starting block of extent */ | ||
220 | xfs_extlen_t *len, /* output: length of extent */ | ||
221 | int *stat); /* output: success/failure */ | ||
222 | |||
208 | #endif /* __XFS_ALLOC_H__ */ | 223 | #endif /* __XFS_ALLOC_H__ */ |