gfs2: Clean up {lookup,fillup}_metapath
authorAndreas Gruenbacher <agruenba@redhat.com>
Fri, 8 Dec 2017 16:01:57 +0000 (17:01 +0100)
committerBob Peterson <rpeterso@redhat.com>
Wed, 17 Jan 2018 13:35:48 +0000 (06:35 -0700)
commite8b43fe0c1e035a135be7ca3791d465fcb1b501e
tree1d99bd058eef39dd06e00ea21f378cb6501fcf52
parente7fdf0040660c2fa184ef176c02907a98bb6f5f5
gfs2: Clean up {lookup,fillup}_metapath

Split out the entire lookup loop from lookup_metapath and
fillup_metapath.  Make both functions return the actual height in
mp->mp_aheight, and return 0 on success.  Handle lookup errors properly
in trunc_dealloc.

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