diff options
author | Christoph Hellwig <hch@infradead.org> | 2008-10-30 01:57:16 -0400 |
---|---|---|
committer | Lachlan McIlroy <lachlan@sgi.com> | 2008-10-30 01:57:16 -0400 |
commit | 344207ce8474b79be331eb93e6df4cb5bdd48ab2 (patch) | |
tree | 7858f63c359e2695a6c368a73b078ff183345922 /fs/xfs/xfs_btree.h | |
parent | f5eb8e7ca58bc1e92436614444006120d21668ba (diff) |
[XFS] implement semi-generic xfs_btree_new_root
From: Dave Chinner <dgc@sgi.com>
Add a xfs_btree_new_root helper for the alloc and ialloc btrees. The bmap
btree needs it's own version and is not converted.
[hch: split out from bigger patch and minor adaptions]
SGI-PV: 985583
SGI-Modid: xfs-linux-melb:xfs-kern:32200a
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_btree.h')
-rw-r--r-- | fs/xfs/xfs_btree.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/fs/xfs/xfs_btree.h b/fs/xfs/xfs_btree.h index 354a6656fad5..18015392feb0 100644 --- a/fs/xfs/xfs_btree.h +++ b/fs/xfs/xfs_btree.h | |||
@@ -187,6 +187,10 @@ struct xfs_btree_ops { | |||
187 | /* cursor operations */ | 187 | /* cursor operations */ |
188 | struct xfs_btree_cur *(*dup_cursor)(struct xfs_btree_cur *); | 188 | struct xfs_btree_cur *(*dup_cursor)(struct xfs_btree_cur *); |
189 | 189 | ||
190 | /* update btree root pointer */ | ||
191 | void (*set_root)(struct xfs_btree_cur *cur, | ||
192 | union xfs_btree_ptr *nptr, int level_change); | ||
193 | |||
190 | /* block allocation / freeing */ | 194 | /* block allocation / freeing */ |
191 | int (*alloc_block)(struct xfs_btree_cur *cur, | 195 | int (*alloc_block)(struct xfs_btree_cur *cur, |
192 | union xfs_btree_ptr *start_bno, | 196 | union xfs_btree_ptr *start_bno, |
@@ -543,6 +547,7 @@ int xfs_btree_lshift(struct xfs_btree_cur *, int, int *); | |||
543 | int xfs_btree_rshift(struct xfs_btree_cur *, int, int *); | 547 | int xfs_btree_rshift(struct xfs_btree_cur *, int, int *); |
544 | int xfs_btree_split(struct xfs_btree_cur *, int, union xfs_btree_ptr *, | 548 | int xfs_btree_split(struct xfs_btree_cur *, int, union xfs_btree_ptr *, |
545 | union xfs_btree_key *, struct xfs_btree_cur **, int *); | 549 | union xfs_btree_key *, struct xfs_btree_cur **, int *); |
550 | int xfs_btree_new_root(struct xfs_btree_cur *, int *); | ||
546 | 551 | ||
547 | /* | 552 | /* |
548 | * Helpers. | 553 | * Helpers. |