diff options
author | Miles Bader <miles@gnu.org> | 1995-04-16 20:33:53 +0000 |
---|---|---|
committer | Miles Bader <miles@gnu.org> | 1995-04-16 20:33:53 +0000 |
commit | c78c396a5f46a744d46e33cbe5b1730ca466817c (patch) | |
tree | 4cb8c829bad68d10b5aaa6e4a52c5f312dc7230a | |
parent | 0594bf0169bd0b3c6fed8e77b67c26d37561bf58 (diff) |
Formerly ext2fs.h.~19~
-rw-r--r-- | ext2fs/ext2fs.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ext2fs/ext2fs.h b/ext2fs/ext2fs.h index c3435404..809da476 100644 --- a/ext2fs/ext2fs.h +++ b/ext2fs/ext2fs.h @@ -176,7 +176,7 @@ unsigned long nextgennumber; #define offsb(offs) ((block) / block_size) #define offsaddr(offs) (((char *)disk_image) + (offs)) #define addroffs(offs) ((addr) - ((char *)disk_image)) -#define bptr(block) offsaddr(boffs(block)) +#define block_image(block) offsaddr(boffs(block)) #define addrb(addr) offsb(addroffs(addr)) /* Get the descriptor for the block group inode INUM is in. */ @@ -186,7 +186,7 @@ group_desc(unsigned long bg_num) int desc_per_block = EXT2_DESC_PER_BLOCK(sblock); unsigned long group_desc = bg_num / desc_per_block; unsigned long desc = bg_num % desc_per_block; - return ((struct ext2_group_desc *)bptr(1 + group_desc)) + desc; + return ((struct ext2_group_desc *)block_image(1 + group_desc)) + desc; } #define inode_group_num(inum) (((inum) - 1) / sblock->s_inodes_per_group) @@ -199,7 +199,7 @@ dino (ino_t inum) struct ext2_group_desc *bg = group_desc(bg_num); unsigned long inodes_per_block = EXT2_INODES_PER_BLOCK(sblock); unsigned long block = bg->bg_inode_table + (bg_num / inodes_per_block); - return ((struct ext2_inode *)bptr(block)) + inum % inodes_per_block; + return ((struct ext2_inode *)block_image(block)) + inum % inodes_per_block; } /* Sync part of the disk */ |