diff options
author | Colin Cross <ccross@android.com> | 2011-04-30 19:08:09 -0700 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2011-04-30 19:08:09 -0700 |
commit | 06c35f935a7adadceb9ee326b3231f952f6ad203 (patch) | |
tree | 6425391bfa4221ef311fcd71f27d92c8bf8f37d5 | |
parent | 480a3b1c6d5413e06775a9d53cb1596535fd91ae (diff) | |
parent | 96cc54a9bbc788673b7a38c23160d137211fd983 (diff) | |
download | extras-06c35f935a7adadceb9ee326b3231f952f6ad203.tar.gz |
Merge "Make inodes per group a multiple of inodes per block"
-rw-r--r-- | ext4_utils/make_ext4fs.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ext4_utils/make_ext4fs.c b/ext4_utils/make_ext4fs.c index c9fd9925..22c94244 100644 --- 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() |