diff options
| author | Theodore Ts'o <[email protected]> | 2009-02-06 16:23:37 -0500 |
|---|---|---|
| committer | Theodore Ts'o <[email protected]> | 2009-02-06 16:23:37 -0500 |
| commit | e187c6588d6ef3169db53c389b3de9dfde3b16cc (patch) | |
| tree | 5ac50e38eecb58d8de571af0053331c31eb0a5e2 /include/linux/debugobjects.h | |
| parent | 074ca44283bf031678e67af7d82668bb03c55a55 (diff) | |
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 <[email protected]>
Signed-off-by: "Theodore Ts'o" <[email protected]>
Diffstat (limited to 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions