From: Darrick J. Wong <djwong@xxxxxxxxxx> 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 <djwong@xxxxxxxxxx> --- repair/phase2.c | 37 ++++++++++++++++++------------------- 1 file changed, 18 insertions(+), 19 deletions(-) diff --git a/repair/phase2.c b/repair/phase2.c index bda834de..cfba649a 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); } /*