ext4: Mark the buffer_heads as dirty and uptodate after prepare_write
authorAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Fri, 7 Nov 2008 14:06:45 +0000 (09:06 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 7 Nov 2008 14:06:45 +0000 (09:06 -0500)
commited9b3e3379731e9f9d2f73f3d7fd9e7d2ce3df4a
treed17381e45fe8843646ca70424095a9aa36711ee7
parentac51d83705c2a38c71f39cde99708b14e6212a60
ext4: Mark the buffer_heads as dirty and uptodate after prepare_write

We need to make sure we mark the buffer_heads as dirty and uptodate
so that block_write_full_page write them correctly.

This fixes mmap corruptions that can occur in low memory situations.

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