diff options
author | Lachlan McIlroy <lachlan@sgi.com> | 2007-02-10 02:36:47 -0500 |
---|---|---|
committer | Tim Shimmin <tes@sgi.com> | 2007-02-10 02:36:47 -0500 |
commit | 681601613759accffd8e8ddbc6f942eba7ecbfe5 (patch) | |
tree | 8495ec3a648ca6ea2dce55ed7baf0127fb2ea486 /fs/xfs/xfs_inode.c | |
parent | 2823945fda94e0636be573a037c45cb7b6495af2 (diff) |
[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>
Diffstat (limited to 'fs/xfs/xfs_inode.c')
-rw-r--r-- | fs/xfs/xfs_inode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/xfs_inode.c b/fs/xfs/xfs_inode.c index e42418f92215..295577d67ea0 100644 --- a/fs/xfs/xfs_inode.c +++ b/fs/xfs/xfs_inode.c | |||
@@ -1810,7 +1810,7 @@ xfs_igrow_start( | |||
1810 | * and any blocks between the old and new file sizes. | 1810 | * and any blocks between the old and new file sizes. |
1811 | */ | 1811 | */ |
1812 | error = xfs_zero_eof(XFS_ITOV(ip), &ip->i_iocore, new_size, | 1812 | error = xfs_zero_eof(XFS_ITOV(ip), &ip->i_iocore, new_size, |
1813 | ip->i_d.di_size, new_size); | 1813 | ip->i_d.di_size); |
1814 | return error; | 1814 | return error; |
1815 | } | 1815 | } |
1816 | 1816 | ||