]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit73e83b686840f4c29b5a647dffc4ce2fc08ffd78
tree1d99bd058eef39dd06e00ea21f378cb6501fcf52
parent00084bea3c16343fc3adbaa5e51bf8e4dc383179
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