aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/linux-2.6/xfs_aops.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/xfs/linux-2.6/xfs_aops.c')
-rw-r--r--fs/xfs/linux-2.6/xfs_aops.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/xfs/linux-2.6/xfs_aops.c b/fs/xfs/linux-2.6/xfs_aops.c
index d20df3918650..36dadc4ff22c 100644
--- a/fs/xfs/linux-2.6/xfs_aops.c
+++ b/fs/xfs/linux-2.6/xfs_aops.c
@@ -163,7 +163,7 @@ xfs_destroy_ioend(
163/* 163/*
164 * Update on-disk file size now that data has been written to disk. 164 * Update on-disk file size now that data has been written to disk.
165 * The current in-memory file size is i_size. If a write is beyond 165 * The current in-memory file size is i_size. If a write is beyond
166 * eof io_new_size will be the intended file size until i_size is 166 * eof i_new_size will be the intended file size until i_size is
167 * updated. If this write does not extend all the way to the valid 167 * updated. If this write does not extend all the way to the valid
168 * file size then restrict this update to the end of the write. 168 * file size then restrict this update to the end of the write.
169 */ 169 */
@@ -185,7 +185,7 @@ xfs_setfilesize(
185 185
186 xfs_ilock(ip, XFS_ILOCK_EXCL); 186 xfs_ilock(ip, XFS_ILOCK_EXCL);
187 187
188 isize = MAX(ip->i_size, ip->i_iocore.io_new_size); 188 isize = MAX(ip->i_size, ip->i_new_size);
189 isize = MIN(isize, bsize); 189 isize = MIN(isize, bsize);
190 190
191 if (ip->i_d.di_size < isize) { 191 if (ip->i_d.di_size < isize) {