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_itable.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_itable.c')
-rw-r--r-- | fs/xfs/xfs_itable.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/xfs/xfs_itable.c b/fs/xfs/xfs_itable.c index a5f02f0e4c2a..42a214b8df9e 100644 --- a/fs/xfs/xfs_itable.c +++ b/fs/xfs/xfs_itable.c | |||
@@ -471,7 +471,7 @@ xfs_bulkstat( | |||
471 | * In any case, increment to the next record. | 471 | * In any case, increment to the next record. |
472 | */ | 472 | */ |
473 | if (!error) | 473 | if (!error) |
474 | error = xfs_inobt_increment(cur, 0, &tmp); | 474 | error = xfs_btree_increment(cur, 0, &tmp); |
475 | } else { | 475 | } else { |
476 | /* | 476 | /* |
477 | * Start of ag. Lookup the first inode chunk. | 477 | * Start of ag. Lookup the first inode chunk. |
@@ -538,7 +538,7 @@ xfs_bulkstat( | |||
538 | * Set agino to after this chunk and bump the cursor. | 538 | * Set agino to after this chunk and bump the cursor. |
539 | */ | 539 | */ |
540 | agino = gino + XFS_INODES_PER_CHUNK; | 540 | agino = gino + XFS_INODES_PER_CHUNK; |
541 | error = xfs_inobt_increment(cur, 0, &tmp); | 541 | error = xfs_btree_increment(cur, 0, &tmp); |
542 | cond_resched(); | 542 | cond_resched(); |
543 | } | 543 | } |
544 | /* | 544 | /* |
@@ -885,7 +885,7 @@ xfs_inumbers( | |||
885 | bufidx = 0; | 885 | bufidx = 0; |
886 | } | 886 | } |
887 | if (left) { | 887 | if (left) { |
888 | error = xfs_inobt_increment(cur, 0, &tmp); | 888 | error = xfs_btree_increment(cur, 0, &tmp); |
889 | if (error) { | 889 | if (error) { |
890 | xfs_btree_del_cursor(cur, XFS_BTREE_ERROR); | 890 | xfs_btree_del_cursor(cur, XFS_BTREE_ERROR); |
891 | cur = NULL; | 891 | cur = NULL; |