Skip to content

Commit e89f00d

Browse files
author
Al Viro
committed
orangefs_inode_is_stale(): i_mode type bits do *not* form a bitmap...
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
1 parent e98f93e commit e89f00d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

fs/orangefs/orangefs-utils.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ static int orangefs_inode_is_stale(struct inode *inode,
221221
* If the inode type or symlink target have changed then this
222222
* inode is stale.
223223
*/
224-
if (type == -1 || !(inode->i_mode & type)) {
224+
if (type == -1 || inode_wrong_type(inode, type)) {
225225
orangefs_make_bad_inode(inode);
226226
return 1;
227227
}

0 commit comments

Comments
 (0)