]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/blobdiff - repair/sb.c
xfs: make rextslog computation consistent with mkfs
[thirdparty/xfsprogs-dev.git] / repair / sb.c
index dedac53afe7ddba0b2dff464fc5188a47343a581..384840db1cec8f8869d834d345fb59946c1cd3f3 100644 (file)
@@ -475,8 +475,7 @@ verify_sb(char *sb_buf, xfs_sb_t *sb, int is_primary_sb)
                if (sb->sb_rblocks / sb->sb_rextsize != sb->sb_rextents)
                        return(XR_BAD_RT_GEO_DATA);
 
-               if (sb->sb_rextslog !=
-                               libxfs_highbit32((unsigned int)sb->sb_rextents))
+               if (sb->sb_rextslog != libxfs_compute_rextslog(sb->sb_rextents))
                        return(XR_BAD_RT_GEO_DATA);
 
                if (sb->sb_rbmblocks != (xfs_extlen_t) howmany(sb->sb_rextents,