From: Lachlan McIlroy Date: Tue, 18 Dec 2007 05:17:41 +0000 (+1100) Subject: [XFS] Don't wait for pending I/Os when purging blocks beyond eof. X-Git-Tag: v2.6.24-rc6~20^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c734c79bc397eace039bea406997efa89f879c14;p=pandora-kernel.git [XFS] Don't wait for pending I/Os when purging blocks beyond eof. On last close of a file we purge blocks beyond eof. The same code is used when we truncate the file size down. In this case we need to wait for any pending I/Os for dirty pages beyond the new eof. For the last close case we are not changing the file size and therefore do not need to wait for any I/Os to complete. This fixes a performance bottleneck where writes into the page cache and cache flushes can become mutually exclusive. SGI-PV: 964002 SGI-Modid: xfs-linux-melb:xfs-kern:30220a Signed-off-by: Lachlan McIlroy Signed-off-by: Peter Leckie --- Reading git-diff-tree failed