ext4: Handle unwritten extent properly with delayed allocation
authorAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Wed, 20 Aug 2008 02:16:43 +0000 (22:16 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 20 Aug 2008 02:16:43 +0000 (22:16 -0400)
commitbf068ee266f9dbaa6dacb8433a366bb399e7ae5b
treedbbf7b4b8a65fd74bdb478bd62e94e5a79f41041
parent30a2f3c60a84092c8084dfe788b710f8d0768cd4
ext4: Handle unwritten extent properly with delayed allocation

When using fallocate the buffer_heads are marked unwritten and unmapped.
We need to map them in the writepages after a get_block.  Otherwise we
split the uninit extents, but never write the content to disk.

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