]> git.baikalelectronics.ru Git - kernel.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)
commitf985a70f7bae6740a173a44b69acbff484ea828e
treebdde10097ec4c12e35f045e84926c5911f8c632b
parent4e3bf9f90abe542917473b35129b924812055e80
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