aboutsummaryrefslogtreecommitdiffstats
path: root/fs/gfs2/ops_export.c
diff options
context:
space:
mode:
authorWendy Cheng <wcheng@redhat.com>2007-08-20 09:29:53 -0400
committerSteven Whitehouse <swhiteho@redhat.com>2007-10-10 03:55:36 -0400
commita13b8c5f2381495879e6facd3b3ada51c9e68194 (patch)
tree79852951c3074af8b2d9e84fdc03d622bc022be3 /fs/gfs2/ops_export.c
parent9a5ad13856cbd10be429f09517c51277c02530f7 (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>
Diffstat (limited to 'fs/gfs2/ops_export.c')
0 files changed, 0 insertions, 0 deletions