From 0aa16f931a2aad63500a8c1f53857ba40450659f Mon Sep 17 00:00:00 2001 From: Namhyung Kim Date: Mon, 11 Oct 2010 19:38:39 +0900 Subject: [PATCH] --- yaml --- r: 218837 b: refs/heads/master c: 81a4e320e6ee29bde3fe880ab87b2122bc1de88b h: refs/heads/master i: 218835: b3c2ed64cb5c7feccb1774451eec97d3ecee84a0 v: v3 --- [refs] | 2 +- trunk/fs/ext3/super.c | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/[refs] b/[refs] index 7949d51cb389..7be160626c74 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 4569cd1b0d91e4d7fa67f950201befc2acfecb34 +refs/heads/master: 81a4e320e6ee29bde3fe880ab87b2122bc1de88b diff --git a/trunk/fs/ext3/super.c b/trunk/fs/ext3/super.c index 1811c6fd5ba4..1c6875118b1e 100644 --- a/trunk/fs/ext3/super.c +++ b/trunk/fs/ext3/super.c @@ -1864,8 +1864,7 @@ static int ext3_fill_super (struct super_block *sb, void *data, int silent) sbi->s_groups_count = ((le32_to_cpu(es->s_blocks_count) - le32_to_cpu(es->s_first_data_block) - 1) / EXT3_BLOCKS_PER_GROUP(sb)) + 1; - db_count = (sbi->s_groups_count + EXT3_DESC_PER_BLOCK(sb) - 1) / - EXT3_DESC_PER_BLOCK(sb); + db_count = DIV_ROUND_UP(sbi->s_groups_count, EXT3_DESC_PER_BLOCK(sb)); sbi->s_group_desc = kmalloc(db_count * sizeof (struct buffer_head *), GFP_KERNEL); if (sbi->s_group_desc == NULL) {