From 3d815aab6de67d974f0c73b4898ebb7aba302027 Mon Sep 17 00:00:00 2001 From: Lachlan McIlroy Date: Thu, 30 Oct 2008 16:59:06 +1100 Subject: [PATCH] --- yaml --- r: 118754 b: refs/heads/master c: 2cf7f0da3ae225848a2ee10d4e216448a770fd00 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/fs/xfs/xfs_inode.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index 19f67ff94bf4..db97c8582ae7 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 9ccbece546cf836f67f6d9bb4bf2f70f7476cb2c +refs/heads/master: 2cf7f0da3ae225848a2ee10d4e216448a770fd00 diff --git a/trunk/fs/xfs/xfs_inode.c b/trunk/fs/xfs/xfs_inode.c index dbd9cef852ec..a391b955df01 100644 --- a/trunk/fs/xfs/xfs_inode.c +++ b/trunk/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); /*