]> asedeno.scripts.mit.edu Git - linux.git/commit
gfs2: hole_size improvement
authorAndreas Gruenbacher <agruenba@redhat.com>
Mon, 4 Jun 2018 12:39:23 +0000 (07:39 -0500)
committerBob Peterson <rpeterso@redhat.com>
Mon, 4 Jun 2018 12:39:23 +0000 (07:39 -0500)
commit7841b9f08444b9c27090ec94101b96265572865f
treebdde10097ec4c12e35f045e84926c5911f8c632b
parentdc8fbb03dcd6df78027ccec61ff2a0bba436d38e
gfs2: hole_size improvement

Reimplement function hole_size based on a generic function for walking
the metadata tree and rename hole_size to gfs2_hole_size.  While
previously, multiple invocations of hole_size were sometimes needed to
walk across the entire hole, the new implementation always returns the
entire hole at once (provided that the caller is interested in the total
size).

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