]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
ext4: Mark the buffer_heads as dirty and uptodate after prepare_write
authorAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Sun, 16 Nov 2008 16:05:39 +0000 (11:05 -0500)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 5 Dec 2008 18:55:45 +0000 (10:55 -0800)
commit7cd10cb101e006e5beb4f3da3826727ed5ef85f8
tree6d2fca6ac49ee11fa9f1013c2b8083e34c4bbeec
parentd52b8a887f6208065a8f91b1e56e3d240d69c06a
ext4: Mark the buffer_heads as dirty and uptodate after prepare_write

(cherry picked from commit ed9b3e3379731e9f9d2f73f3d7fd9e7d2ce3df4a)

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/ext4/inode.c