[PATCH] xfs: handle EOF correctly in xfs_vm_writepage

Mark Tinguely tinguely at sgi.com
Mon Jul 16 11:05:38 CDT 2012


On 07/03/12 11:20, Christoph Hellwig wrote:
> We need to zero out part of a page which beyond EOF before setting uptodate,
> otherwise, mapread or write will see non-zero data beyond EOF.
>
> Based on the code in fs/buffer.c and the following ext4 commit:
>
>    ext4: handle EOF correctly in ext4_bio_write_page()
>
> And yes, I wish we had a good test case for it.
>
> Signed-off-by: Christoph Hellwig<hch at lst.de>
>
> ---

Looks good.

Reviewed-by: Mark Tinguely <tinguely at sgi.com>



More information about the xfs mailing list