]> git.karo-electronics.de Git - karo-tx-linux.git/commit
Treat writes as new when holes span across page boundaries
authorGoldwyn Rodrigues <rgoldwyn@gmail.com>
Thu, 17 Feb 2011 15:44:40 +0000 (09:44 -0600)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Wed, 14 Mar 2012 14:57:02 +0000 (10:57 -0400)
commit03a520dd202eb96e3360cb52b0eea7965d57b5fd
treec5022c4fa2a537c0431bb260977a40f3364d90f2
parent29a12d82ce40b169250f75c2155bbcf2f4a1863c
Treat writes as new when holes span across page boundaries

commit 272b62c1f0f6f742046e45b50b6fec98860208a0 upstream.

When a hole spans across page boundaries, the next write forces
a read of the block. This could end up reading existing garbage
data from the disk in ocfs2_map_page_blocks. This leads to
non-zero holes. In order to avoid this, mark the writes as new
when the holes span across page boundaries.

Signed-off-by: Goldwyn Rodrigues <rgoldwyn@suse.de>
Signed-off-by: jlbec <jlbec@evilplan.org>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
fs/ocfs2/aops.c