]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ext4: simplify journal handling in setup_new_group_blocks()
authorYongqiang Yang <xiaoqiangnk@gmail.com>
Wed, 27 Jul 2011 02:24:41 +0000 (22:24 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 27 Jul 2011 02:24:41 +0000 (22:24 -0400)
commit9f32af08d87fd0926dd156c24873a35a50ea1ef0
treed4b9c22f062a5e7c5d6acfb42f26144f6af28454
parent9a33125fe5c06988f50e5c84e9165601fb7a093a
ext4: simplify journal handling in setup_new_group_blocks()

This patch simplifies journal handling in setup_new_group_blocks().

In previous code, block bitmap is modified everywhere in
setup_new_group_blocks(), ext4_get_write_access() in
extend_or_restart_transaction() is used to guarantee that the block
bitmap stays in the new handle, this makes things complicated.

The previous commit changed things so that the modifications on the
block bitmap are batched and done by ext4_set_bits() at the end of the
for loop.  This allows us to simplify things.

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