GFS2: Make height info part of metapath
authorBob Peterson <rpeterso@redhat.com>
Fri, 28 Oct 2016 19:29:29 +0000 (14:29 -0500)
committerAndreas Gruenbacher <agruenba@redhat.com>
Tue, 31 Oct 2017 13:26:23 +0000 (14:26 +0100)
commit5f8bd4440d94729d1977fba6ca0b4875c2ee1515
tree98b3e3b76cdf40ffd7764029057bfc19e9129b9c
parent0c9a66ec0e362fe9aff545b755430e56f58f2b96
GFS2: Make height info part of metapath

This patch eliminates height parameters from function gfs2_bmap_alloc.
Function find_metapath determines the metapath's "find height", also
known as the desired height. Function lookup_metapath determines the
metapath's "actual height", previously known as starting height or
sheight. Function gfs2_bmap_alloc now gets both height values from
the metapath. This simplification was done as a step toward switching
the block_map functions to using iomap. The bh_map responsibilities
are also removed from function gfs2_bmap_alloc for the same reason.

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