diff options
author | Christoph Hellwig <hch@infradead.org> | 2008-10-30 01:57:40 -0400 |
---|---|---|
committer | Lachlan McIlroy <lachlan@sgi.com> | 2008-10-30 01:57:40 -0400 |
commit | 4b22a57188d87e873346b73c227607715be96399 (patch) | |
tree | 4cf2d0deede695968b7a32b098c0c64fac8610e5 /fs/xfs/xfs_ialloc_btree.h | |
parent | ea77b0a66e6c910ef265d9af522d6303ea6b3055 (diff) |
[XFS] implement generic xfs_btree_insert/insrec
Make the btree insert code generic. Based on a patch from David Chinner
with lots of changes to follow the original btree implementations more
closely. While this loses some of the generic helper routines for
inserting/moving/removing records it also solves some of the one off bugs
in the original code and makes it easier to verify.
SGI-PV: 985583
SGI-Modid: xfs-linux-melb:xfs-kern:32202a
Signed-off-by: Christoph Hellwig <hch@infradead.org>
Signed-off-by: Lachlan McIlroy <lachlan@sgi.com>
Signed-off-by: Bill O'Donnell <billodo@sgi.com>
Signed-off-by: David Chinner <david@fromorbit.com>
Diffstat (limited to 'fs/xfs/xfs_ialloc_btree.h')
-rw-r--r-- | fs/xfs/xfs_ialloc_btree.h | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/fs/xfs/xfs_ialloc_btree.h b/fs/xfs/xfs_ialloc_btree.h index 7f77549e82a6..c9cbc4f2168d 100644 --- a/fs/xfs/xfs_ialloc_btree.h +++ b/fs/xfs/xfs_ialloc_btree.h | |||
@@ -129,12 +129,6 @@ extern int xfs_inobt_delete(struct xfs_btree_cur *cur, int *stat); | |||
129 | extern int xfs_inobt_get_rec(struct xfs_btree_cur *cur, xfs_agino_t *ino, | 129 | extern int xfs_inobt_get_rec(struct xfs_btree_cur *cur, xfs_agino_t *ino, |
130 | __int32_t *fcnt, xfs_inofree_t *free, int *stat); | 130 | __int32_t *fcnt, xfs_inofree_t *free, int *stat); |
131 | 131 | ||
132 | /* | ||
133 | * Insert the current record at the point referenced by cur. | ||
134 | * The cursor may be inconsistent on return if splits have been done. | ||
135 | */ | ||
136 | extern int xfs_inobt_insert(struct xfs_btree_cur *cur, int *stat); | ||
137 | |||
138 | 132 | ||
139 | extern struct xfs_btree_cur *xfs_inobt_init_cursor(struct xfs_mount *, | 133 | extern struct xfs_btree_cur *xfs_inobt_init_cursor(struct xfs_mount *, |
140 | struct xfs_trans *, struct xfs_buf *, xfs_agnumber_t); | 134 | struct xfs_trans *, struct xfs_buf *, xfs_agnumber_t); |