From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wendy Cheng Date: Mon, 20 Aug 2007 09:29:53 -0400 Subject: [Cluster-devel] [GFS2 PATCH] Reduce truncate IO traffic Message-ID: <46C99751.6030205@redhat.com> List-Id: To: cluster-devel.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 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. -- Wendy -------------- next part -------------- A non-text attachment was scrubbed... Name: gfs2_touch.patch Type: text/x-patch Size: 1640 bytes Desc: not available URL: