diff options
Diffstat (limited to 'include/linux/dcache.h')
-rw-r--r-- | include/linux/dcache.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/include/linux/dcache.h b/include/linux/dcache.h index 7781ce110503..c4b5f4b3f8f8 100644 --- a/include/linux/dcache.h +++ b/include/linux/dcache.h | |||
@@ -409,9 +409,7 @@ static inline bool d_mountpoint(const struct dentry *dentry) | |||
409 | */ | 409 | */ |
410 | static inline unsigned __d_entry_type(const struct dentry *dentry) | 410 | static inline unsigned __d_entry_type(const struct dentry *dentry) |
411 | { | 411 | { |
412 | unsigned type = READ_ONCE(dentry->d_flags); | 412 | return dentry->d_flags & DCACHE_ENTRY_TYPE; |
413 | smp_rmb(); | ||
414 | return type & DCACHE_ENTRY_TYPE; | ||
415 | } | 413 | } |
416 | 414 | ||
417 | static inline bool d_is_miss(const struct dentry *dentry) | 415 | static inline bool d_is_miss(const struct dentry *dentry) |