diff options
author | Miles Bader <miles@gnu.org> | 1995-04-16 20:35:03 +0000 |
---|---|---|
committer | Miles Bader <miles@gnu.org> | 1995-04-16 20:35:03 +0000 |
commit | 3ce92f2fc14ebfff41e112138069a1637983be92 (patch) | |
tree | 79fd92df51caebcfac62d2b807acc77cf4b6e4cb | |
parent | f38c7af352d15d687f7e41179b7bd8c80edb43a3 (diff) |
Formerly ext2fs.h.~20~
-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 809da476..c3435404 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 block_image(block) offsaddr(boffs(block)) +#define bptr(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 *)block_image(1 + group_desc)) + desc; + return ((struct ext2_group_desc *)bptr(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 *)block_image(block)) + inum % inodes_per_block; + return ((struct ext2_inode *)bptr(block)) + inum % inodes_per_block; } /* Sync part of the disk */ |