Commit e89f00d6 authored by Al Viro's avatar Al Viro

orangefs_inode_is_stale(): i_mode type bits do *not* form a bitmap...

Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent e98f93e7
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment