GFS2: O_TRUNC not working on stuffed files across cluster
authorBob Peterson <rpeterso@redhat.com>
Thu, 24 Jun 2010 23:15:09 +0000 (19:15 -0400)
committerSteven Whitehouse <swhiteho@redhat.com>
Thu, 15 Jul 2010 08:05:17 +0000 (09:05 +0100)
commita8bf2bc212e129dd59a8b06cdbc15079cc3bd876
treeb0a298e7f2534de52b9506fa1d6040e98e263a87
parent2f7989efd4398d92b8adffce2e07dd043a0895fe
GFS2: O_TRUNC not working on stuffed files across cluster

This patch replaces a statement that got dropped out by accident.
Without the patch, truncates on stuffed (very small) files cause
those files to have an unpredictable size.

Signed-off-by: Bob Peterson <rpeterso@redhat.com>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
fs/gfs2/bmap.c