ext4: Fix the delalloc writepages to allocate blocks at the right offset.
commit791b7f08954869d7b8ff438f3dac3cfb39778297
authorAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Tue, 6 Jan 2009 02:50:43 +0000 (5 21:50 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 6 Jan 2009 02:50:43 +0000 (5 21:50 -0500)
tree9e5e9414e6b102940dea0f6c3103fee7fcc0df1d
parent2a21e37e48b94388f2cc8c0392f104f5443d4bb8
ext4: Fix the delalloc writepages to allocate blocks at the right offset.

When iterating through the pages which have mapped buffer_heads, we
failed to update the b_state value. This results in allocating blocks
at logical offset 0.

Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Cc: stable@kernel.org
fs/ext4/inode.c