Re: [Cluster-devel] [GFS2 PATCH] Reduce truncate IO traffic

2007-08-20 Thread Steven Whitehouse
Hi, Now in the -nmw git tree. Thanks, Steve. On Mon, 2007-08-20 at 09:29 -0400, Wendy Cheng wrote: > 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 r

[Cluster-devel] [GFS2 PATCH] Reduce truncate IO traffic

2007-08-20 Thread Wendy Cheng
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