]> Pileus Git - ~andy/linux/blobdiff - fs/xfs/xfs_mount.c
regmap: Include the last register in debugfs output
[~andy/linux] / fs / xfs / xfs_mount.c
index 7f25245da28900280c4d56cb3ce7e909c3757d4c..092e16ae4d9d69615bb2c1ca48b74e8d983d5979 100644 (file)
@@ -1331,7 +1331,7 @@ xfs_mountfs(
 
        ASSERT(rip != NULL);
 
-       if (unlikely((rip->i_d.di_mode & S_IFMT) != S_IFDIR)) {
+       if (unlikely(!S_ISDIR(rip->i_d.di_mode))) {
                xfs_warn(mp, "corrupted root inode %llu: not a directory",
                        (unsigned long long)rip->i_ino);
                xfs_iunlock(rip, XFS_ILOCK_EXCL);