orangefs_inode_is_stale(): i_mode type bits do *not* form a bitmap...
authorAl Viro <viro@zeniv.linux.org.uk>
Sun, 14 Feb 2021 04:03:20 +0000 (23:03 -0500)
committerAl Viro <viro@zeniv.linux.org.uk>
Sat, 13 Mar 2021 03:15:17 +0000 (22:15 -0500)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/orangefs/orangefs-utils.c

index d4b7ae763186ce5da4606b33251386e5fb7318a2..46b7dcff18acedaa3b9ca07ac8ad812b3a90748c 100644 (file)
@@ -221,7 +221,7 @@ static int orangefs_inode_is_stale(struct inode *inode,
         * If the inode type or symlink target have changed then this
         * inode is stale.
         */
-       if (type == -1 || !(inode->i_mode & type)) {
+       if (type == -1 || inode_wrong_type(inode, type)) {
                orangefs_make_bad_inode(inode);
                return 1;
        }