diff options
author | Christoph Hellwig <hch@infradead.org> | 2008-10-30 01:55:45 -0400 |
---|---|---|
committer | Lachlan McIlroy <lachlan@sgi.com> | 2008-10-30 01:55:45 -0400 |
commit | 637aa50f461b8ea6b1e8bf9877b0d13d00085043 (patch) | |
tree | a7c00b821dca04fe90614461749b74eff40bd8ed /fs/xfs/xfs_bmap.c | |
parent | 65f1eaeac0efc968797f3ac955b85ba3f5d4f9c8 (diff) |
[XFS] implement generic xfs_btree_increment
From: Dave Chinner <dgc@sgi.com>
Because this is the first major generic btree routine this patch includes
some infrastrucure, first a few routines to deal with a btree block that
can be either in short or long form, second xfs_btree_read_buf_block,
which is the new central routine to read a btree block given a cursor, and
third the new xfs_btree_ptr_addr routine to calculate the address for a
given btree pointer record.
[hch: split out from bigger patch and minor adaptions]
SGI-PV: 985583
SGI-Modid: xfs-linux-melb:xfs-kern:32190a
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_bmap.c')
-rw-r--r-- | fs/xfs/xfs_bmap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/xfs/xfs_bmap.c b/fs/xfs/xfs_bmap.c index a84d0c30b485..4b1ec44c80aa 100644 --- a/fs/xfs/xfs_bmap.c +++ b/fs/xfs/xfs_bmap.c | |||
@@ -1646,7 +1646,7 @@ xfs_bmap_add_extent_unwritten_real( | |||
1646 | PREV.br_blockcount - new->br_blockcount, | 1646 | PREV.br_blockcount - new->br_blockcount, |
1647 | oldext))) | 1647 | oldext))) |
1648 | goto done; | 1648 | goto done; |
1649 | if ((error = xfs_bmbt_increment(cur, 0, &i))) | 1649 | if ((error = xfs_btree_increment(cur, 0, &i))) |
1650 | goto done; | 1650 | goto done; |
1651 | if ((error = xfs_bmbt_update(cur, new->br_startoff, | 1651 | if ((error = xfs_bmbt_update(cur, new->br_startoff, |
1652 | new->br_startblock, | 1652 | new->br_startblock, |
@@ -3253,7 +3253,7 @@ xfs_bmap_del_extent( | |||
3253 | got.br_startblock, temp, | 3253 | got.br_startblock, temp, |
3254 | got.br_state))) | 3254 | got.br_state))) |
3255 | goto done; | 3255 | goto done; |
3256 | if ((error = xfs_bmbt_increment(cur, 0, &i))) | 3256 | if ((error = xfs_btree_increment(cur, 0, &i))) |
3257 | goto done; | 3257 | goto done; |
3258 | cur->bc_rec.b = new; | 3258 | cur->bc_rec.b = new; |
3259 | error = xfs_bmbt_insert(cur, &i); | 3259 | error = xfs_bmbt_insert(cur, &i); |