GFS2: Fix truncation of journaled data files
authorSteven Whitehouse <swhiteho@redhat.com>
Tue, 13 Nov 2012 09:50:28 +0000 (09:50 +0000)
committerSteven Whitehouse <swhiteho@redhat.com>
Tue, 13 Nov 2012 09:50:28 +0000 (09:50 +0000)
commitfa731fc4e045a801814547188a63c2cd49a4cfe6
tree639c3ac1ff3ceeb459981248596f996a656cd295
parent9dbe9610b9df4efe0946299804ed46bb8f91dec2
GFS2: Fix truncation of journaled data files

This patch fixes an issue relating to not having enough revokes
available when truncating journaled data files. In order to ensure
that we do no run out, the truncation is broken into separate pieces
if it is large enough.

Tested using fsx on a journaled data file.

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