summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2021-02-14 05:03:20 +0100
committerAl Viro <viro@zeniv.linux.org.uk>2021-03-13 04:15:17 +0100
commite89f00d602b16284ee29677501f39126dd26ee3a (patch)
tree680efe6cd5c4ec6e1b4d0d95d397458fe79a99b0 /fs
parentvboxsf: don't allow to change the inode type (diff)
downloadlinux-e89f00d602b16284ee29677501f39126dd26ee3a.tar.xz
linux-e89f00d602b16284ee29677501f39126dd26ee3a.zip
orangefs_inode_is_stale(): i_mode type bits do *not* form a bitmap...
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs')
-rw-r--r--fs/orangefs/orangefs-utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/orangefs/orangefs-utils.c b/fs/orangefs/orangefs-utils.c
index d4b7ae763186..46b7dcff18ac 100644
--- a/fs/orangefs/orangefs-utils.c
+++ b/fs/orangefs/orangefs-utils.c
@@ -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;
}