aboutsummaryrefslogtreecommitdiff
path: root/sys/contrib/openzfs/module
diff options
context:
space:
mode:
authorMateusz Guzik <mjg@FreeBSD.org>2021-01-25 19:39:14 +0000
committerMateusz Guzik <mjg@FreeBSD.org>2021-01-25 22:40:15 +0000
commitcc96f92a570e05636a20fdd15d4616b127bb9ecc (patch)
tree7906fc8dfb4bb4f84ce96c8863e0040ad08a29e6 /sys/contrib/openzfs/module
parentf40d6217f20d69427b58d82ce4e29d88bf4dfbd6 (diff)
downloadsrc-cc96f92a570e05636a20fdd15d4616b127bb9ecc.tar.gz
src-cc96f92a570e05636a20fdd15d4616b127bb9ecc.zip
atomic: make atomic_store_ptr type-aware
Diffstat (limited to 'sys/contrib/openzfs/module')
-rw-r--r--sys/contrib/openzfs/module/os/freebsd/zfs/zfs_znode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/contrib/openzfs/module/os/freebsd/zfs/zfs_znode.c b/sys/contrib/openzfs/module/os/freebsd/zfs/zfs_znode.c
index f9a0820eda2d..d9f2635b0129 100644
--- a/sys/contrib/openzfs/module/os/freebsd/zfs/zfs_znode.c
+++ b/sys/contrib/openzfs/module/os/freebsd/zfs/zfs_znode.c
@@ -444,7 +444,7 @@ zfs_znode_alloc(zfsvfs_t *zfsvfs, dmu_buf_t *db, int blksz,
zp->z_blksz = blksz;
zp->z_seq = 0x7A4653;
zp->z_sync_cnt = 0;
- atomic_store_ptr((uintptr_t *)&zp->z_cached_symlink, (uintptr_t)NULL);
+ atomic_store_ptr(&zp->z_cached_symlink, NULL);
vp = ZTOV(zp);