gfs2: simplify gfs2_freeze by removing case
authorBob Peterson <rpeterso@redhat.com>
Mon, 29 Apr 2019 15:36:23 +0000 (09:36 -0600)
committerAndreas Gruenbacher <agruenba@redhat.com>
Thu, 27 Jun 2019 19:26:58 +0000 (21:26 +0200)
commit55317f5b00f0dc0c807979292362ddc568b5bcc9
tree2f52e3fae5bef3de74fcc6ea9616745b093e02aa
parent04aea0ca14f025828c22d8ef586ff59d0be2f98b
gfs2: simplify gfs2_freeze by removing case

Function gfs2_freeze had a case statement that simply checked the
error code, but the break statements just made the logic hard to
read. This patch simplifies the logic in favor of a simple if.

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