X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=fs%2Fxfs%2Fxfs_inode.c;h=a391b955df0176969727b3768d08e6162216e96c;hb=c15cb37cc4e9809624411333b96109ddf770e29c;hp=dbd9cef852ece3d6d8b3b5b930626000c88bed06;hpb=95237b80a3021ce5abb4d9ad330355549026f9c3;p=linux-2.6-block.git diff --git a/fs/xfs/xfs_inode.c b/fs/xfs/xfs_inode.c index dbd9cef852ec..a391b955df01 100644 --- a/fs/xfs/xfs_inode.c +++ b/fs/xfs/xfs_inode.c @@ -1414,7 +1414,7 @@ xfs_itruncate_start( mp = ip->i_mount; /* wait for the completion of any pending DIOs */ - if (new_size < ip->i_size) + if (new_size == 0 || new_size < ip->i_size) vn_iowait(ip); /*