summaryrefslogtreecommitdiff
path: root/fs/xfs/libxfs/xfs_alloc.h
diff options
context:
space:
mode:
authorDave Chinner <david@fromorbit.com>2015-06-23 08:48:43 +1000
committerDave Chinner <david@fromorbit.com>2015-06-23 08:48:43 +1000
commit3d238b7e0efc2d9dde7513298ef32da289a6a0f4 (patch)
treee427366b478ecc974a4fc2a341a75f6c0114b012 /fs/xfs/libxfs/xfs_alloc.h
parent4ea79766168b64766d6c9fcdaa9fab83a6cfebcf (diff)
parent496817b4befced99dff6f23997723bf0962d56b0 (diff)
Merge branch 'xfs-freelist-cleanup' into for-next
Diffstat (limited to 'fs/xfs/libxfs/xfs_alloc.h')
-rw-r--r--fs/xfs/libxfs/xfs_alloc.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/fs/xfs/libxfs/xfs_alloc.h b/fs/xfs/libxfs/xfs_alloc.h
index 29f27b272b7f..ca1c8168373a 100644
--- a/fs/xfs/libxfs/xfs_alloc.h
+++ b/fs/xfs/libxfs/xfs_alloc.h
@@ -130,11 +130,9 @@ typedef struct xfs_alloc_arg {
#define XFS_ALLOC_USERDATA 1 /* allocation is for user data*/
#define XFS_ALLOC_INITIAL_USER_DATA 2 /* special case start of file */
-/*
- * Find the length of the longest extent in an AG.
- */
-xfs_extlen_t
-xfs_alloc_longest_free_extent(struct xfs_mount *mp,
+xfs_extlen_t xfs_alloc_longest_free_extent(struct xfs_mount *mp,
+ struct xfs_perag *pag, xfs_extlen_t need);
+unsigned int xfs_alloc_min_freelist(struct xfs_mount *mp,
struct xfs_perag *pag);
/*