gfs2: simplify gfs2_block_map
authorBob Peterson <rpeterso@redhat.com>
Wed, 19 Aug 2020 14:24:48 +0000 (09:24 -0500)
committerAndreas Gruenbacher <agruenba@redhat.com>
Thu, 15 Oct 2020 12:29:04 +0000 (14:29 +0200)
commita6645745d45da5b3dd3ff616a3e44f7651eda9f9
tree3662e5ba687b0d8fe99d2869b295d940cd717250
parent6302d6f43e3550495747ffbaeb75a46ea8c15b32
gfs2: simplify gfs2_block_map

Function gfs2_block_map had a lot of redundancy between its create and
no_create paths. This patch simplifies the code to eliminate the redundancy.

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