aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/vnode.h
diff options
context:
space:
mode:
authorMateusz Guzik <mjg@FreeBSD.org>2021-01-25 20:19:08 +0000
committerMateusz Guzik <mjg@FreeBSD.org>2021-01-25 22:40:15 +0000
commit8d2a230e996c8aec2ec4883d45f7ac38070bd38f (patch)
tree364eb271e19f47e8134099aa42c9664d5494f405 /sys/sys/vnode.h
parent054ce2b0371042c0dbc4b3ab1d7e7795ad75d51e (diff)
downloadsrc-8d2a230e996c8aec2ec4883d45f7ac38070bd38f.tar.gz
src-8d2a230e996c8aec2ec4883d45f7ac38070bd38f.zip
vfs: use atomic_load_consume_ptr in vn_load_v_data_smr
Diffstat (limited to 'sys/sys/vnode.h')
-rw-r--r--sys/sys/vnode.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/sys/vnode.h b/sys/sys/vnode.h
index ffd0bdad940d..78fbec1bd0ba 100644
--- a/sys/sys/vnode.h
+++ b/sys/sys/vnode.h
@@ -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 */