diff options
author | Valerie Aurora Henson <vaurora@redhat.com> | 2009-10-25 21:46:58 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2009-10-25 21:46:58 -0400 |
commit | 48f23054bb8ad0506c0baa9f06ba182acc2aa88b (patch) | |
tree | 8109604621185e4a1712140cb7104fb94cccce87 /lib/ext2fs | |
parent | cf828f1a72ec1eb0c1e819307137879447c909b7 (diff) | |
download | e2fsprogs-48f23054bb8ad0506c0baa9f06ba182acc2aa88b.tar.gz |
Convert ext2fs_block_alloc_stats() calls to block_alloc_stats2()
Signed-off-by: Valerie Aurora Henson <vaurora@redhat.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'lib/ext2fs')
-rw-r--r-- | lib/ext2fs/bb_inode.c | 4 | ||||
-rw-r--r-- | lib/ext2fs/expanddir.c | 2 | ||||
-rw-r--r-- | lib/ext2fs/extent.c | 3 | ||||
-rw-r--r-- | lib/ext2fs/mkdir.c | 2 | ||||
-rw-r--r-- | lib/ext2fs/mkjournal.c | 2 |
5 files changed, 7 insertions, 6 deletions
diff --git a/lib/ext2fs/bb_inode.c b/lib/ext2fs/bb_inode.c index f5a093dc..aeae3da6 100644 --- a/lib/ext2fs/bb_inode.c +++ b/lib/ext2fs/bb_inode.c @@ -191,7 +191,7 @@ static int clear_bad_block_proc(ext2_filsys fs, blk_t *block_nr, /* * Mark the block as unused, and update accounting information */ - ext2fs_block_alloc_stats(fs, *block_nr, -1); + ext2fs_block_alloc_stats2(fs, *block_nr, -1); *block_nr = 0; return BLOCK_CHANGED; @@ -254,7 +254,7 @@ static int set_bad_block_proc(ext2_filsys fs, blk_t *block_nr, /* * Update block counts */ - ext2fs_block_alloc_stats(fs, blk, +1); + ext2fs_block_alloc_stats2(fs, blk, +1); *block_nr = blk; return BLOCK_CHANGED; diff --git a/lib/ext2fs/expanddir.c b/lib/ext2fs/expanddir.c index 613f7bc3..baee5fe1 100644 --- a/lib/ext2fs/expanddir.c +++ b/lib/ext2fs/expanddir.c @@ -69,7 +69,7 @@ static int expand_dir_proc(ext2_filsys fs, } ext2fs_free_mem(&block); *blocknr = new_blk; - ext2fs_block_alloc_stats(fs, new_blk, +1); + ext2fs_block_alloc_stats2(fs, new_blk, +1); es->newblocks++; if (es->done) diff --git a/lib/ext2fs/extent.c b/lib/ext2fs/extent.c index 0b3b60c3..b07915d1 100644 --- a/lib/ext2fs/extent.c +++ b/lib/ext2fs/extent.c @@ -1507,7 +1507,8 @@ errcode_t ext2fs_extent_delete(ext2_extent_handle_t handle, int flags) handle->inode->i_blocks -= handle->fs->blocksize / 512; retval = ext2fs_write_inode(handle->fs, handle->ino, handle->inode); - ext2fs_block_alloc_stats(handle->fs, extent.e_pblk, -1); + ext2fs_block_alloc_stats2(handle->fs, + extent.e_pblk, -1); } } else { eh = (struct ext3_extent_header *) path->buf; diff --git a/lib/ext2fs/mkdir.c b/lib/ext2fs/mkdir.c index 88bc6fa2..580240c3 100644 --- a/lib/ext2fs/mkdir.c +++ b/lib/ext2fs/mkdir.c @@ -128,7 +128,7 @@ errcode_t ext2fs_mkdir(ext2_filsys fs, ext2_ino_t parent, ext2_ino_t inum, /* * Update accounting.... */ - ext2fs_block_alloc_stats(fs, blk, +1); + ext2fs_block_alloc_stats2(fs, blk, +1); ext2fs_inode_alloc_stats2(fs, ino, +1, 1); cleanup: diff --git a/lib/ext2fs/mkjournal.c b/lib/ext2fs/mkjournal.c index eff177fc..8d5bf01d 100644 --- a/lib/ext2fs/mkjournal.c +++ b/lib/ext2fs/mkjournal.c @@ -271,7 +271,7 @@ static int mkjournal_proc(ext2_filsys fs, return BLOCK_ABORT; } *blocknr = es->goal = new_blk; - ext2fs_block_alloc_stats(fs, new_blk, +1); + ext2fs_block_alloc_stats2(fs, new_blk, +1); if (es->num_blocks == 0) return (BLOCK_CHANGED | BLOCK_ABORT); |