gfs2: Turn trunc_dealloc into punch_hole
authorAndreas Gruenbacher <agruenba@redhat.com>
Mon, 18 Dec 2017 23:06:44 +0000 (00:06 +0100)
committerAndreas Gruenbacher <agruenba@redhat.com>
Thu, 18 Jan 2018 20:15:57 +0000 (21:15 +0100)
commit10d2cf94c23d48ef1b141084216e7580011e4790
tree2b246046c8fba5415aba59f464426c507b4d8927
parent5cf26b1e88c9eef76a1e8bdedbad48db925bbdd5
gfs2: Turn trunc_dealloc into punch_hole

Add an upper bound to the range of blocks to deallocate blocks to
function trunc_dealloc so that this function can be used for truncating
a file as well as for punching a hole into a file.

Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Signed-off-by: Bob Peterson <rpeterso@redhat.com>
fs/gfs2/bmap.c