ocfs2: Fix calculation of i_blocks during truncate
authorMark Fasheh <mark.fasheh@oracle.com>
Fri, 31 Aug 2007 17:23:41 +0000 (10:23 -0700)
committerMark Fasheh <mark.fasheh@oracle.com>
Tue, 11 Sep 2007 18:39:46 +0000 (11:39 -0700)
commite535e2efd295c3990bb9f654c8bb6bd176ebdc2b
tree5f519f1003a7f5700e5e8d62d477382bc806d738
parent30b8548f2c270c0205558fe4826a6ab8e7fe51ad
ocfs2: Fix calculation of i_blocks during truncate

We were setting i_blocks too early - before truncating any allocation.
Correct things to set i_blocks after the allocation change.

Signed-off-by: Mark Fasheh <mark.fasheh@oracle.com>
fs/ocfs2/alloc.c
fs/ocfs2/file.c