Index: fs/xfs/xfs_inode.c =================================================================== RCS file: /cvs/linux-2.6-xfs/fs/xfs/xfs_inode.c,v retrieving revision 1.495 diff -u -r1.495 xfs_inode.c --- fs/xfs/xfs_inode.c 22 Feb 2008 03:05:49 -0000 1.495 +++ fs/xfs/xfs_inode.c 4 Apr 2008 14:55:46 -0000 @@ -1799,11 +1799,6 @@ ASSERT(ismrlocked(&(ip->i_iolock), MR_UPDATE) != 0); ASSERT(new_size > ip->i_size); - /* - * Zero any pages that may have been created by - * xfs_write_file() beyond the end of the file - * and any blocks between the old and new file sizes. - */ return xfs_zero_eof(ip, new_size, ip->i_size); } Index: fs/xfs/xfs_rw.c =================================================================== RCS file: /cvs/linux-2.6-xfs/fs/xfs/xfs_rw.c,v retrieving revision 1.399 diff -u -r1.399 xfs_rw.c --- fs/xfs/xfs_rw.c 24 Aug 2007 16:13:42 -0000 1.399 +++ fs/xfs/xfs_rw.c 4 Apr 2008 14:55:47 -0000 @@ -1,3 +1,4 @@ + /* * Copyright (c) 2000-2006 Silicon Graphics, Inc. * All Rights Reserved. @@ -114,7 +115,7 @@ * the fact that buffered writes lock out direct I/O * writes - the direct I/O write could have extended * the size nontransactionally, then finished before - * we started. xfs_write_file will think that the file + * we started. xfs_write will think that the file * didn't grow but the update isn't safe unless the * size change is logged. *