gfs2: punch_hole cleanups

The rounding done in punch_hole() and its helper functions is difficult
to understand.  Clean things up by switching from a "metapointer list"
that points to the first block after the hole (end_list) to one that
points at the last block of the hole (last_list).  This simplifies the
rounding logic and a number of other things.

Signed-off-by: Andreas Gruenbacher <>
1 file changed