From: Wendy Cheng Date: Mon, 20 Aug 2007 13:29:53 +0000 (-0400) Subject: [GFS2] Reduce truncate IO traffic X-Git-Tag: v2.6.24-rc1~1405^2~26 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a13b8c5f2381495879e6facd3b3ada51c9e68194;p=pandora-kernel.git [GFS2] Reduce truncate IO traffic Current GFS2 setattr call unconditionally invokes do_shrink even the requested size and actual file size are equal. This has generated large amount of extra IOs found during NFS benchmark runs. This patch moves the relevant logic out of shrink code path. Since setattr is a system call, the time stamps update is still required. Signed-off-by: S. Wendy Cheng Signed-off-by: Steven Whitehouse --- Reading git-diff-tree failed