commit | a13b8c5f2381495879e6facd3b3ada51c9e68194 | [log] [tgz] |
---|---|---|
author | Wendy Cheng <wcheng@redhat.com> | Mon Aug 20 09:29:53 2007 -0400 |
committer | Steven Whitehouse <swhiteho@redhat.com> | Wed Oct 10 08:55:36 2007 +0100 |
tree | 79852951c3074af8b2d9e84fdc03d622bc022be3 | |
parent | 9a5ad13856cbd10be429f09517c51277c02530f7 [diff] |
[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 <wcheng@redhat.com> Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>