From: Darrick J. Wong Date: Fri, 25 Feb 2022 22:42:16 +0000 (-0500) Subject: xfs_repair: fix indentation problems in upgrade_filesystem X-Git-Tag: v5.15.0-rc1~14 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0f53ef95a96e838804c02dc7d42591d4033d8caa;p=thirdparty%2Fxfsprogs-dev.git xfs_repair: fix indentation problems in upgrade_filesystem Indentation is supposed to be tabs, not spaces. Fix that, and unindent the bwrite clause because do_error aborts the program. Signed-off-by: Darrick J. Wong Reviewed-by: Eric Sandeen Signed-off-by: Eric Sandeen --- diff --git a/repair/phase2.c b/repair/phase2.c index bda834de0..cfba649ae 100644 --- a/repair/phase2.c +++ b/repair/phase2.c @@ -196,29 +196,28 @@ upgrade_filesystem( return; mp->m_features |= libxfs_sb_version_to_features(&mp->m_sb); - if (no_modify) - return; + if (no_modify) + return; - bp = libxfs_getsb(mp); - if (!bp || bp->b_error) { - do_error( + bp = libxfs_getsb(mp); + if (!bp || bp->b_error) + do_error( _("couldn't get superblock for feature upgrade, err=%d\n"), - bp ? bp->b_error : ENOMEM); - } else { - libxfs_sb_to_disk(bp->b_addr, &mp->m_sb); + bp ? bp->b_error : ENOMEM); - /* - * Write the primary super to disk immediately so that - * needsrepair will be set if repair doesn't complete. - */ - error = -libxfs_bwrite(bp); - if (error) - do_error( + libxfs_sb_to_disk(bp->b_addr, &mp->m_sb); + + /* + * Write the primary super to disk immediately so that needsrepair will + * be set if repair doesn't complete. + */ + error = -libxfs_bwrite(bp); + if (error) + do_error( _("filesystem feature upgrade failed, err=%d\n"), - error); - } - if (bp) - libxfs_buf_relse(bp); + error); + + libxfs_buf_relse(bp); } /*