ext4: Release page references acquired in ext4_da_block_invalidatepages
authorJan Kara <jack@suse.cz>
Wed, 3 Mar 2010 21:19:32 +0000 (16:19 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 3 Mar 2010 21:19:32 +0000 (16:19 -0500)
commit9b1d0998d24f9c207d5fbdd0b8bac07284e0eda7
tree0670c100d74086884c772e72d3e4135b57118515
parent67eeb5685d2a211c0252ac7884142e503c759500
ext4: Release page references acquired in ext4_da_block_invalidatepages

We forget to release page references we acquire in
ext4_da_block_invalidatepages.  Luckily, this function gets called only if we
are not able to allocate blocks for delay-allocated data so that function
should better never be called.

Also cleanup handling of index variable.

Reported-by: Wu Fengguang <fengguang.wu@intel.com>
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/ext4/inode.c