OSDN Git Service
(root)
/
android-x86
/
system-extras.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
480a3b1
)
Merge "Make inodes per group a multiple of inodes per block"
author
Colin Cross
<ccross@android.com>
Sun, 1 May 2011 02:08:09 +0000
(19:08 -0700)
committer
Android (Google) Code Review
<android-gerrit@google.com>
Sun, 1 May 2011 02:08:09 +0000
(19:08 -0700)
ext4_utils/make_ext4fs.c
patch
|
blob
|
history
diff --git
a/ext4_utils/make_ext4fs.c
b/ext4_utils/make_ext4fs.c
index
c9fd992
..
22c9424
100644
(file)
--- a/
ext4_utils/make_ext4fs.c
+++ b/
ext4_utils/make_ext4fs.c
@@
-214,7
+214,8
@@
static u32 compute_inodes_per_group()
{
u32 blocks = DIV_ROUND_UP(info.len, info.block_size);
u32 block_groups = DIV_ROUND_UP(blocks, info.blocks_per_group);
- return DIV_ROUND_UP(info.inodes, block_groups);
+ u32 inodes = DIV_ROUND_UP(info.inodes, block_groups);
+ return ALIGN(inodes, (info.block_size / info.inode_size));
}
static u32 compute_bg_desc_reserve_blocks()