GFS2: Fix cache coherency between truncate and O_DIRECT read
authorSteven Whitehouse <swhiteho@redhat.com>
Wed, 10 Jun 2009 08:09:40 +0000 (09:09 +0100)
committerSteven Whitehouse <swhiteho@redhat.com>
Wed, 10 Jun 2009 08:09:40 +0000 (09:09 +0100)
commit40bc9a27e00d6c8c7e4dc2865c02d7402a950472
tree0a445d4c8b22833898a5363f750744146cb05aff
parentf6d03139d745198b434f65a28aabed524f415a4c
GFS2: Fix cache coherency between truncate and O_DIRECT read

If a page was partially zeroed as the result of a truncate, then it was
not being correctly marked dirty. This resulted in the deleted data
reappearing if the file was read back via direct I/O.

Reported-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
fs/gfs2/bmap.c