[XFS] Fix callers of xfs_iozero() to zero the correct range.
authorLachlan McIlroy <lachlan@sgi.com>
Sat, 10 Feb 2007 07:36:47 +0000 (18:36 +1100)
committerTim Shimmin <tes@sgi.com>
Sat, 10 Feb 2007 07:36:47 +0000 (18:36 +1100)
commit681601613759accffd8e8ddbc6f942eba7ecbfe5
tree8495ec3a648ca6ea2dce55ed7baf0127fb2ea486
parent2823945fda94e0636be573a037c45cb7b6495af2
[XFS] Fix callers of xfs_iozero() to zero the correct range.

The problem is the two callers of xfs_iozero() are rounding out the range
to be zeroed to the end of a fsb and in some cases this extends past the
new eof. The call to commit_write() in xfs_iozero() will cause the Linux
inode's file size to be set too high.

SGI-PV: 960788
SGI-Modid: xfs-linux-melb:xfs-kern:28013a

Signed-off-by: Lachlan McIlroy <lachlan@sgi.com>
Signed-off-by: David Chinner <dgc@sgi.com>
Signed-off-by: Tim Shimmin <tes@sgi.com>
fs/xfs/linux-2.6/xfs_lrw.c
fs/xfs/linux-2.6/xfs_lrw.h
fs/xfs/xfs_inode.c