summaryrefslogtreecommitdiff
path: root/fs/xfs/xfs_alloc.h
diff options
context:
space:
mode:
authorFelix Blyakher <felixb@sgi.com>2009-03-16 09:15:27 -0500
committerFelix Blyakher <felixb@sgi.com>2009-03-16 09:15:27 -0500
commit4740cd8b4f27d6ac11e76c432d5d03fb780b2596 (patch)
tree46cb64d646ce1481dc9e606740742c40c9e6af50 /fs/xfs/xfs_alloc.h
parentcb1b77804091cc3491da4338a3599e318f358b25 (diff)
parent6cc87645e2a3c28d857b074e90bf88bfcd117afa (diff)
Merge branch 'master' of git://git.kernel.org/pub/scm/fs/xfs/xfs
Diffstat (limited to 'fs/xfs/xfs_alloc.h')
-rw-r--r--fs/xfs/xfs_alloc.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/fs/xfs/xfs_alloc.h b/fs/xfs/xfs_alloc.h
index 588172796f7b..e704caee10df 100644
--- a/fs/xfs/xfs_alloc.h
+++ b/fs/xfs/xfs_alloc.h
@@ -100,6 +100,12 @@ 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,
+ struct xfs_perag *pag);
#ifdef __KERNEL__