]> 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)
commitf5d1491e8d1dbfd75a1a44b948f9a8aa38506793
treebdde10097ec4c12e35f045e84926c5911f8c632b
parente1a6baf9940a8ca2ce9ec2388334761e76ddc77e
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