Changeset View
Changeset View
Standalone View
Standalone View
head/sys/fs/ext2fs/ext2fs.h
Show First 20 Lines • Show All 416 Lines • ▼ Show 20 Lines | |||||
/* | /* | ||||
* Macro-instructions used to manage group descriptors | * Macro-instructions used to manage group descriptors | ||||
*/ | */ | ||||
#define EXT2_BLOCKS_PER_GROUP(s) (EXT2_SB(s)->e2fs_bpg) | #define EXT2_BLOCKS_PER_GROUP(s) (EXT2_SB(s)->e2fs_bpg) | ||||
#define EXT2_DESCS_PER_BLOCK(s) (EXT2_HAS_INCOMPAT_FEATURE((s), \ | #define EXT2_DESCS_PER_BLOCK(s) (EXT2_HAS_INCOMPAT_FEATURE((s), \ | ||||
EXT2F_INCOMPAT_64BIT) ? ((s)->e2fs_bsize / sizeof(struct ext2_gd)) : \ | EXT2F_INCOMPAT_64BIT) ? ((s)->e2fs_bsize / sizeof(struct ext2_gd)) : \ | ||||
((s)->e2fs_bsize / E2FS_REV0_GD_SIZE)) | ((s)->e2fs_bsize / E2FS_REV0_GD_SIZE)) | ||||
/* | |||||
* Macro-instructions used to manage inodes | |||||
*/ | |||||
#define EXT2_FIRST_INO(s) ((EXT2_SB(s)->e2fs->e2fs_rev == E2FS_REV0) ? \ | |||||
EXT2_FIRSTINO : \ | |||||
EXT2_SB(s)->e2fs->e2fs_first_ino) | |||||
#endif /* !_FS_EXT2FS_EXT2FS_H_ */ | #endif /* !_FS_EXT2FS_EXT2FS_H_ */ |