diff options
author | Theodore Ts'o <tytso@mit.edu> | 2009-05-25 11:50:39 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2009-05-25 11:50:39 -0400 |
commit | 88b6edd17c62b7d346d21f4087893ce7d4ef828a (patch) | |
tree | e6c80d48f184861c965a58bd88fd3a023b65a1c9 /fs/ext4/super.c | |
parent | 759d427aa5a9d88a81afd11817cdeb40aea85234 (diff) |
ext4: Clean up calls to ext4_get_group_desc()
If the caller isn't planning on modifying the block group descriptors,
there's no need to pass in a pointer to a struct buffer_head. Nuking
this saves a tiny amount of CPU time and stack space usage.
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'fs/ext4/super.c')
-rw-r--r-- | fs/ext4/super.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/ext4/super.c b/fs/ext4/super.c index eca6c057b119..91b98b58ccb9 100644 --- a/fs/ext4/super.c +++ b/fs/ext4/super.c | |||
@@ -1660,7 +1660,6 @@ static int ext4_fill_flex_info(struct super_block *sb) | |||
1660 | { | 1660 | { |
1661 | struct ext4_sb_info *sbi = EXT4_SB(sb); | 1661 | struct ext4_sb_info *sbi = EXT4_SB(sb); |
1662 | struct ext4_group_desc *gdp = NULL; | 1662 | struct ext4_group_desc *gdp = NULL; |
1663 | struct buffer_head *bh; | ||
1664 | ext4_group_t flex_group_count; | 1663 | ext4_group_t flex_group_count; |
1665 | ext4_group_t flex_group; | 1664 | ext4_group_t flex_group; |
1666 | int groups_per_flex = 0; | 1665 | int groups_per_flex = 0; |
@@ -1693,7 +1692,7 @@ static int ext4_fill_flex_info(struct super_block *sb) | |||
1693 | } | 1692 | } |
1694 | 1693 | ||
1695 | for (i = 0; i < sbi->s_groups_count; i++) { | 1694 | for (i = 0; i < sbi->s_groups_count; i++) { |
1696 | gdp = ext4_get_group_desc(sb, i, &bh); | 1695 | gdp = ext4_get_group_desc(sb, i, NULL); |
1697 | 1696 | ||
1698 | flex_group = ext4_flex_group(sbi, i); | 1697 | flex_group = ext4_flex_group(sbi, i); |
1699 | atomic_set(&sbi->s_flex_groups[flex_group].free_inodes, | 1698 | atomic_set(&sbi->s_flex_groups[flex_group].free_inodes, |