aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_btree.h
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@infradead.org>2008-10-30 01:57:51 -0400
committerLachlan McIlroy <lachlan@sgi.com>2008-10-30 01:57:51 -0400
commitd4b3a4b7dd62f2e111d4d0afa9ef3f9b6cd955c0 (patch)
treecd0b5a46d81fa9d9b0253c489f64ad698e3a0fa9 /fs/xfs/xfs_btree.h
parent4b22a57188d87e873346b73c227607715be96399 (diff)
[XFS] move xfs_bmbt_killroot to common code
xfs_bmbt_killroot is a mostly generic implementation of moving from a real block based root to an inode based root. So move it to xfs_btree.c where it can use all the nice infrastructure there and make it pointer size agnostic The new name for it is xfs_btree_kill_iroot, following the old naming but making it clear we're dealing with the root in inode case here, and to avoid confusion with xfs_btree_new_root which is used for the not inode rooted case. I've also added a comment describing what it does and why it's named the way it is. SGI-PV: 985583 SGI-Modid: xfs-linux-melb:xfs-kern:32203a 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.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/xfs/xfs_btree.h b/fs/xfs/xfs_btree.h
index 6f03871f5995..ff2552febba7 100644
--- a/fs/xfs/xfs_btree.h
+++ b/fs/xfs/xfs_btree.h
@@ -198,6 +198,7 @@ struct xfs_btree_ops {
198 union xfs_btree_ptr *start_bno, 198 union xfs_btree_ptr *start_bno,
199 union xfs_btree_ptr *new_bno, 199 union xfs_btree_ptr *new_bno,
200 int length, int *stat); 200 int length, int *stat);
201 int (*free_block)(struct xfs_btree_cur *cur, struct xfs_buf *bp);
201 202
202 /* update last record information */ 203 /* update last record information */
203 void (*update_lastrec)(struct xfs_btree_cur *cur, 204 void (*update_lastrec)(struct xfs_btree_cur *cur,
@@ -559,6 +560,7 @@ int xfs_btree_split(struct xfs_btree_cur *, int, union xfs_btree_ptr *,
559 union xfs_btree_key *, struct xfs_btree_cur **, int *); 560 union xfs_btree_key *, struct xfs_btree_cur **, int *);
560int xfs_btree_new_root(struct xfs_btree_cur *, int *); 561int xfs_btree_new_root(struct xfs_btree_cur *, int *);
561int xfs_btree_new_iroot(struct xfs_btree_cur *, int *, int *); 562int xfs_btree_new_iroot(struct xfs_btree_cur *, int *, int *);
563int xfs_btree_kill_iroot(struct xfs_btree_cur *);
562int xfs_btree_insert(struct xfs_btree_cur *, int *); 564int xfs_btree_insert(struct xfs_btree_cur *, int *);
563 565
564/* 566/*