]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
xfs_repair: inode flags check should use flags
authorDave Chinner <dchinner@redhat.com>
Wed, 23 Feb 2011 22:28:26 +0000 (09:28 +1100)
committerDave Chinner <david@fromorbit.com>
Wed, 23 Feb 2011 22:28:26 +0000 (09:28 +1100)
The RT bitmap inode format flag check should use the flag, not the
bit definition. As a result, it is incorrectly detecting inodes with
the prealloc flag set as has having an invalid bit set.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
repair/dinode.c

index fad15b24a306270abfd3f20b34f394f38624ddf7..3a092e4dd35c3144c2525755835ec80ff7a5069f 100644 (file)
@@ -2551,11 +2551,11 @@ process_dinode_int(xfs_mount_t *mp,
                                                XFS_DIFLAG_RTINHERIT);
                        }
                }
-               if (flags & XFS_DIFLAG_NEWRTBM_BIT) {
+               if (flags & XFS_DIFLAG_NEWRTBM) {
                        /* must be a rt bitmap inode */
                        if (lino != mp->m_sb.sb_rbmino) {
                                do_warn(_("inode %llu not rt bitmap"), lino);
-                               flags &= ~XFS_DIFLAG_NEWRTBM_BIT;
+                               flags &= ~XFS_DIFLAG_NEWRTBM;
                        }
                }
                if (flags & (XFS_DIFLAG_RTINHERIT |