diff options
author | Miles Bader <miles@gnu.org> | 1995-04-26 01:47:57 +0000 |
---|---|---|
committer | Miles Bader <miles@gnu.org> | 1995-04-26 01:47:57 +0000 |
commit | e6123c2b5f297a4177891f16eb2619930124c2d1 (patch) | |
tree | 02413a55ac48135b2888e3d94ae3a06fb7aaccd3 | |
parent | 8576ed5d7edbed3727f20c87faa755a46db9838f (diff) |
Formerly ialloc.c.~20~
-rw-r--r-- | ext2fs/ialloc.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/ext2fs/ialloc.c b/ext2fs/ialloc.c index 4d5e39b4..637692c9 100644 --- a/ext2fs/ialloc.c +++ b/ext2fs/ialloc.c @@ -57,9 +57,9 @@ diskfs_free_node (struct node *np, mode_t old_mode) struct ext2_group_desc *gdp; ino_t inum = np->dn->number; - assert (!diskfs_readonly) + assert (!diskfs_readonly); - ext2_debug ("freeing inode %lu\n", inum); + ext2_debug ("freeing inode %u\n", inum); spin_lock (&global_lock); @@ -320,9 +320,7 @@ unsigned long ext2_count_free_inodes () { #ifdef EXT2FS_DEBUG - struct ext2_super_block *es; unsigned long desc_count, bitmap_count, x; - int bitmap_nr; struct ext2_group_desc *gdp; int i; @@ -335,7 +333,7 @@ ext2_count_free_inodes () { gdp = group_desc (i); desc_count += gdp->bg_free_inodes_count; - x = count_free (gdp->bg_inode_bitmap, sblock->s_inodes_per_group / 8); + x = count_free (bptr (gdp->bg_inode_bitmap), sblock->s_inodes_per_group / 8); printf ("group %d: stored = %d, counted = %lu\n", i, gdp->bg_free_inodes_count, x); bitmap_count += x; } |