diff options
author | Christoph Hellwig <hch@infradead.org> | 2008-10-30 01:56:32 -0400 |
---|---|---|
committer | Lachlan McIlroy <lachlan@sgi.com> | 2008-10-30 01:56:32 -0400 |
commit | 278d0ca14e889c3932a05d1a68675252a12b3466 (patch) | |
tree | a228d171d4aded60b27639e30eca1bf58ed7daa6 /fs/xfs/xfs_ialloc_btree.h | |
parent | 38bb74237d2d94c1aced2ec626d7d0f317e360da (diff) |
[XFS] implement generic xfs_btree_update
From: Dave Chinner <dgc@sgi.com>
The most complicated part here is the lastrec tracking for the alloc
btree. Most logic is in the update_lastrec method which has to do some
hopefully good enough dirty magic to maintain it.
[hch: split out from bigger patch and a rework of the lastrec
logic]
SGI-PV: 985583
SGI-Modid: xfs-linux-melb:xfs-kern:32194a
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 | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/fs/xfs/xfs_ialloc_btree.h b/fs/xfs/xfs_ialloc_btree.h index 674b459521f5..7f77549e82a6 100644 --- a/fs/xfs/xfs_ialloc_btree.h +++ b/fs/xfs/xfs_ialloc_btree.h | |||
@@ -135,14 +135,6 @@ extern int xfs_inobt_get_rec(struct xfs_btree_cur *cur, xfs_agino_t *ino, | |||
135 | */ | 135 | */ |
136 | extern int xfs_inobt_insert(struct xfs_btree_cur *cur, int *stat); | 136 | extern int xfs_inobt_insert(struct xfs_btree_cur *cur, int *stat); |
137 | 137 | ||
138 | /* | ||
139 | * Update the record referred to by cur, to the value given | ||
140 | * by [ino, fcnt, free]. | ||
141 | * This either works (return 0) or gets an EFSCORRUPTED error. | ||
142 | */ | ||
143 | extern int xfs_inobt_update(struct xfs_btree_cur *cur, xfs_agino_t ino, | ||
144 | __int32_t fcnt, xfs_inofree_t free); | ||
145 | |||
146 | 138 | ||
147 | extern struct xfs_btree_cur *xfs_inobt_init_cursor(struct xfs_mount *, | 139 | extern struct xfs_btree_cur *xfs_inobt_init_cursor(struct xfs_mount *, |
148 | struct xfs_trans *, struct xfs_buf *, xfs_agnumber_t); | 140 | struct xfs_trans *, struct xfs_buf *, xfs_agnumber_t); |