[Cluster-devel] [GFS2 Patch] Simplify gfs2_write_alloc_required

2010-06-24 Thread Bob Peterson
Hi, Here is a patch for a clean up I spotted: Function gfs2_write_alloc_required always returned zero as its return code. Therefore, it doesn't need to return a return code at all. Given that, we can use the return value to return whether or not the dinode needs block allocations rather than pa

[Cluster-devel] [GFS2 Patch] GFS2: O_TRUNC not working on stuffed files across cluster

2010-06-24 Thread Bob Peterson
Hi, 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. Regards, Bob Peterson Red Hat File Systems Signed-off-by: Bob Peterson -- fs/gfs2/bmap.c |1 + 1 files changed