diff options
Diffstat (limited to 'fs/xfs/libxfs/xfs_alloc.h')
| -rw-r--r-- | fs/xfs/libxfs/xfs_alloc.h | 12 | 
1 files changed, 12 insertions, 0 deletions
diff --git a/fs/xfs/libxfs/xfs_alloc.h b/fs/xfs/libxfs/xfs_alloc.h index 2a8d0fa6fbbe..77d9c27330ab 100644 --- a/fs/xfs/libxfs/xfs_alloc.h +++ b/fs/xfs/libxfs/xfs_alloc.h @@ -219,4 +219,16 @@ int xfs_free_extent_fix_freelist(struct xfs_trans *tp, xfs_agnumber_t agno,  xfs_extlen_t xfs_prealloc_blocks(struct xfs_mount *mp); +typedef int (*xfs_alloc_query_range_fn)( +	struct xfs_btree_cur		*cur, +	struct xfs_alloc_rec_incore	*rec, +	void				*priv); + +int xfs_alloc_query_range(struct xfs_btree_cur *cur, +		struct xfs_alloc_rec_incore *low_rec, +		struct xfs_alloc_rec_incore *high_rec, +		xfs_alloc_query_range_fn fn, void *priv); +int xfs_alloc_query_all(struct xfs_btree_cur *cur, xfs_alloc_query_range_fn fn, +		void *priv); +  #endif	/* __XFS_ALLOC_H__ */  |