diff options
Diffstat (limited to 'fs/ceph/super.h')
-rw-r--r-- | fs/ceph/super.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/ceph/super.h b/fs/ceph/super.h index e2e904442ce2..1886294e12f7 100644 --- a/fs/ceph/super.h +++ b/fs/ceph/super.h | |||
@@ -400,8 +400,9 @@ static inline bool ceph_i_test(struct inode *inode, unsigned mask) | |||
400 | struct ceph_inode_info *ci = ceph_inode(inode); | 400 | struct ceph_inode_info *ci = ceph_inode(inode); |
401 | bool r; | 401 | bool r; |
402 | 402 | ||
403 | smp_mb(); | 403 | spin_lock(&inode->i_lock); |
404 | r = (ci->i_ceph_flags & mask) == mask; | 404 | r = (ci->i_ceph_flags & mask) == mask; |
405 | spin_unlock(&inode->i_lock); | ||
405 | return r; | 406 | return r; |
406 | } | 407 | } |
407 | 408 | ||