vfs: use atomic_load_consume_ptr in vn_load_v_data_smr

(cherry picked from commit 8d2a230e99)
This commit is contained in:
Mateusz Guzik 2021-01-25 21:19:08 +01:00
parent fc301c224b
commit e8d3e38845

View file

@ -1112,7 +1112,7 @@ int vn_dir_check_exec(struct vnode *vp, struct componentname *cnp);
struct vnode *_vp = (vp); \
\
VFS_SMR_ASSERT_ENTERED(); \
atomic_load_ptr(&(_vp)->v_data); \
atomic_load_consume_ptr(&(_vp)->v_data);\
})
#endif /* _KERNEL */