]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
xfs_repair: fix indentation problems in upgrade_filesystem
authorDarrick J. Wong <djwong@kernel.org>
Fri, 25 Feb 2022 22:42:16 +0000 (17:42 -0500)
committerEric Sandeen <sandeen@sandeen.net>
Fri, 25 Feb 2022 22:42:16 +0000 (17:42 -0500)
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@kernel.org>
Reviewed-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
repair/phase2.c

index bda834de0b89e2af23bdca063d2ad30cb5a761d8..cfba649aeb5bc508c82590e17bfba28ad30be5f1 100644 (file)
@@ -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);
 }
 
 /*