]> git.baikalelectronics.ru Git - kernel.git/commit
ext4: simplify parameters of add_new_gdb()
authorYongqiang Yang <xiaoqiangnk@gmail.com>
Thu, 28 Jul 2011 01:16:33 +0000 (21:16 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 28 Jul 2011 01:16:33 +0000 (21:16 -0400)
commit6e83c71f2ca19b147e0634d2e5aed950b3c990a8
tree935314cca6ee1a5e29359fafcd1d4d934eeabbe0
parentdba8961c92309a1925bfb89945e2dccf1e0e44db
ext4: simplify parameters of add_new_gdb()

add_new_gdb() only needs the block group number; there is no need to
pass a pointer to struct ext4_new_group_data to add_new_gdb().
Instead of filling in a pointer the struct buffer_head in
add_new_gdb(), it's simpler to have the caller fetch it from the
s_group_desc[] array.

[Fixed error path to handle the case where struct buffer_head *primary
 hasn't been set yet. -- Ted]

Signed-off-by: Yongqiang Yang <xiaoqiangnk@gmail.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/ext4/resize.c