diff options
author | Theodore Ts'o <tytso@mit.edu> | 2009-02-06 22:23:37 +0100 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2009-02-06 22:23:37 +0100 |
commit | e187c6588d6ef3169db53c389b3de9dfde3b16cc (patch) | |
tree | 5ac50e38eecb58d8de571af0053331c31eb0a5e2 /fs/ext4/namei.h | |
parent | ext4: Remove stale block allocator references from ext4.h (diff) | |
download | linux-e187c6588d6ef3169db53c389b3de9dfde3b16cc.tar.xz linux-e187c6588d6ef3169db53c389b3de9dfde3b16cc.zip |
ext4: remove call to ext4_group_desc() in ext4_group_used_meta_blocks()
The static function ext4_group_used_meta_blocks() only has one caller,
who already has access to the block group's group descriptor. So it's
better to have ext4_init_block_bitmap() pass the group descriptor to
ext4_group_used_meta_blocks(), so it doesn't need to call
ext4_group_desc(). Previously this function did not check if
ext4_group_desc() returned NULL due to an error, potentially causing a
kernel OOPS report. This avoids the issue entirely.
Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@holoscopio.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'fs/ext4/namei.h')
0 files changed, 0 insertions, 0 deletions