Use shifts in nilfs2.
* grub-core/fs/nilfs2.c (LOG_INODE_SIZE): New definition. (LOG_NILFS_DAT_ENTRY_SIZE): Likewise. (grub_nilfs2_palloc_entries_per_group): Replace with ... (grub_nilfs2_log_palloc_entries_per_group): ... this. (grub_nilfs2_palloc_group): Use shifts and bitmasks. (grub_nilfs2_entries_per_block): Replaced with ... (grub_nilfs2_log_entries_per_block_log): ... this. (grub_nilfs2_blocks_per_group): Replaced with ... (grub_nilfs2_blocks_per_group_log): ... this. (grub_nilfs2_blocks_per_desc_block): Replaced with ... (grub_nilfs2_blocks_per_desc_block_log): ... this. (grub_nilfs2_palloc_desc_block_offset): Replaced with ... (grub_nilfs2_palloc_desc_block_offset_log): ... this. (grub_nilfs2_palloc_entry_offset): Replaced ... (grub_nilfs2_palloc_entry_offset_log): ... this. Use shifts. (grub_nilfs2_dat_translate): Use shifts. (grub_nilfs2_read_inode): Likewise. (GRUB_MOD_INIT): Ensure that logs are correct.
This commit is contained in:
parent
564dd58c2a
commit
e551115a26
2 changed files with 70 additions and 40 deletions
23
ChangeLog
23
ChangeLog
|
@ -1,3 +1,26 @@
|
|||
2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
|
||||
|
||||
Use shifts in nilfs2.
|
||||
|
||||
* grub-core/fs/nilfs2.c (LOG_INODE_SIZE): New definition.
|
||||
(LOG_NILFS_DAT_ENTRY_SIZE): Likewise.
|
||||
(grub_nilfs2_palloc_entries_per_group): Replace with ...
|
||||
(grub_nilfs2_log_palloc_entries_per_group): ... this.
|
||||
(grub_nilfs2_palloc_group): Use shifts and bitmasks.
|
||||
(grub_nilfs2_entries_per_block): Replaced with ...
|
||||
(grub_nilfs2_log_entries_per_block_log): ... this.
|
||||
(grub_nilfs2_blocks_per_group): Replaced with ...
|
||||
(grub_nilfs2_blocks_per_group_log): ... this.
|
||||
(grub_nilfs2_blocks_per_desc_block): Replaced with ...
|
||||
(grub_nilfs2_blocks_per_desc_block_log): ... this.
|
||||
(grub_nilfs2_palloc_desc_block_offset): Replaced with ...
|
||||
(grub_nilfs2_palloc_desc_block_offset_log): ... this.
|
||||
(grub_nilfs2_palloc_entry_offset): Replaced ...
|
||||
(grub_nilfs2_palloc_entry_offset_log): ... this. Use shifts.
|
||||
(grub_nilfs2_dat_translate): Use shifts.
|
||||
(grub_nilfs2_read_inode): Likewise.
|
||||
(GRUB_MOD_INIT): Ensure that logs are correct.
|
||||
|
||||
2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
|
||||
|
||||
Use shifts in minix filesystem.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue