gfs2: Another gfs2_walk_metadata fix
authorAndreas Gruenbacher <agruenba@redhat.com>
Mon, 20 Apr 2020 17:42:04 +0000 (19:42 +0200)
committerAndreas Gruenbacher <agruenba@redhat.com>
Fri, 8 May 2020 13:15:12 +0000 (15:15 +0200)
commit566a2ab3c9005f62e784bd39022d58d34ef4365c
tree198d5bd77998c0b2a5687c6bd0102290c2b452ae
parentd22f69a08dcb0f469170cda1976d5938cb0e5dcf
gfs2: Another gfs2_walk_metadata fix

Make sure we don't walk past the end of the metadata in gfs2_walk_metadata: the
inode holds fewer pointers than indirect blocks.

Slightly clean up gfs2_iomap_get.

Fixes: a27a0c9b6a20 ("gfs2: gfs2_walk_metadata fix")
Cc: stable@vger.kernel.org # v5.3+
Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Signed-off-by: Bob Peterson <rpeterso@redhat.com>
fs/gfs2/bmap.c