aboutsummaryrefslogtreecommitdiffstats
path: root/module
diff options
context:
space:
mode:
authorMatthew Macy <[email protected]>2020-07-29 16:35:33 -0700
committerGitHub <[email protected]>2020-07-29 16:35:33 -0700
commit27d96d22542282b81a055e2108268dc78d08eda8 (patch)
tree56926ce22cb377e4de917dae56022faca7c080e7 /module
parent843e9ca2e1ef347cf6b0271ed84438afc145dfd4 (diff)
Rename refcount.h to zfs_refcount.h
Renamed to avoid conflicting with refcount.h when a different implementation is already provided by the platform. Reviewed-by: Ryan Moeller <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Matt Macy <[email protected]> Closes #10620
Diffstat (limited to 'module')
-rw-r--r--module/os/freebsd/spl/spl_vfs.c1
-rw-r--r--module/os/freebsd/zfs/arc_os.c2
-rw-r--r--module/os/freebsd/zfs/zfs_fuid_os.c1
-rw-r--r--module/os/freebsd/zfs/zfs_vnops.c1
-rw-r--r--module/os/freebsd/zfs/zfs_znode.c3
-rw-r--r--module/os/freebsd/zfs/zvol_os.c1
-rw-r--r--module/os/linux/zfs/arc_os.c2
-rw-r--r--module/os/linux/zfs/zfs_znode.c2
-rw-r--r--module/zfs/arc.c2
-rw-r--r--module/zfs/bpobj.c2
-rw-r--r--module/zfs/bptree.c1
-rw-r--r--module/zfs/dsl_deadlist.c1
-rw-r--r--module/zfs/refcount.c2
-rw-r--r--module/zfs/rrwlock.c1
-rw-r--r--module/zfs/space_map.c1
-rw-r--r--module/zfs/vdev_indirect.c1
-rw-r--r--module/zfs/vdev_initialize.c1
-rw-r--r--module/zfs/vdev_trim.c1
-rw-r--r--module/zfs/zap.c1
-rw-r--r--module/zfs/zap_micro.c1
-rw-r--r--module/zfs/zfs_fuid.c1
21 files changed, 9 insertions, 20 deletions
diff --git a/module/os/freebsd/spl/spl_vfs.c b/module/os/freebsd/spl/spl_vfs.c
index d42835c20..6d308adb4 100644
--- a/module/os/freebsd/spl/spl_vfs.c
+++ b/module/os/freebsd/spl/spl_vfs.c
@@ -40,6 +40,7 @@ __FBSDID("$FreeBSD$");
#include <sys/mutex.h>
#include <sys/vnode.h>
+#include <sys/taskq.h>
#include <sys/ccompat.h>
diff --git a/module/os/freebsd/zfs/arc_os.c b/module/os/freebsd/zfs/arc_os.c
index b3deff0f0..554896d85 100644
--- a/module/os/freebsd/zfs/arc_os.c
+++ b/module/os/freebsd/zfs/arc_os.c
@@ -26,7 +26,7 @@
#include <sys/zio_checksum.h>
#include <sys/zfs_context.h>
#include <sys/arc.h>
-#include <sys/refcount.h>
+#include <sys/zfs_refcount.h>
#include <sys/vdev.h>
#include <sys/vdev_trim.h>
#include <sys/vdev_impl.h>
diff --git a/module/os/freebsd/zfs/zfs_fuid_os.c b/module/os/freebsd/zfs/zfs_fuid_os.c
index ebd09abd6..72655d7ff 100644
--- a/module/os/freebsd/zfs/zfs_fuid_os.c
+++ b/module/os/freebsd/zfs/zfs_fuid_os.c
@@ -26,7 +26,6 @@
#include <sys/dmu.h>
#include <sys/avl.h>
#include <sys/zap.h>
-#include <sys/refcount.h>
#include <sys/nvpair.h>
#ifdef _KERNEL
#include <sys/sid.h>
diff --git a/module/os/freebsd/zfs/zfs_vnops.c b/module/os/freebsd/zfs/zfs_vnops.c
index 14ad71d11..742b29506 100644
--- a/module/os/freebsd/zfs/zfs_vnops.c
+++ b/module/os/freebsd/zfs/zfs_vnops.c
@@ -36,6 +36,7 @@
#include <sys/sysmacros.h>
#include <sys/resource.h>
#include <sys/vfs.h>
+#include <sys/endian.h>
#include <sys/vm.h>
#include <sys/vnode.h>
#include <sys/dirent.h>
diff --git a/module/os/freebsd/zfs/zfs_znode.c b/module/os/freebsd/zfs/zfs_znode.c
index badf159ca..a44870612 100644
--- a/module/os/freebsd/zfs/zfs_znode.c
+++ b/module/os/freebsd/zfs/zfs_znode.c
@@ -56,14 +56,13 @@
#include <sys/dmu.h>
#include <sys/dmu_objset.h>
#include <sys/dmu_tx.h>
-#include <sys/refcount.h>
+#include <sys/zfs_refcount.h>
#include <sys/stat.h>
#include <sys/zap.h>
#include <sys/zfs_znode.h>
#include <sys/sa.h>
#include <sys/zfs_sa.h>
#include <sys/zfs_stat.h>
-#include <sys/refcount.h>
#include "zfs_prop.h"
#include "zfs_comutil.h"
diff --git a/module/os/freebsd/zfs/zvol_os.c b/module/os/freebsd/zfs/zvol_os.c
index d601c7251..22fc64558 100644
--- a/module/os/freebsd/zfs/zvol_os.c
+++ b/module/os/freebsd/zfs/zvol_os.c
@@ -78,7 +78,6 @@
#include <sys/fs/zfs.h>
#include <sys/zfs_ioctl.h>
#include <sys/zil.h>
-#include <sys/refcount.h>
#include <sys/zfs_znode.h>
#include <sys/zfs_rlock.h>
#include <sys/vdev_impl.h>
diff --git a/module/os/linux/zfs/arc_os.c b/module/os/linux/zfs/arc_os.c
index e9c0f349d..9c3a6a4e2 100644
--- a/module/os/linux/zfs/arc_os.c
+++ b/module/os/linux/zfs/arc_os.c
@@ -33,7 +33,7 @@
#include <sys/zio_checksum.h>
#include <sys/zfs_context.h>
#include <sys/arc.h>
-#include <sys/refcount.h>
+#include <sys/zfs_refcount.h>
#include <sys/vdev.h>
#include <sys/vdev_trim.h>
#include <sys/vdev_impl.h>
diff --git a/module/os/linux/zfs/zfs_znode.c b/module/os/linux/zfs/zfs_znode.c
index 504dc76f9..a542c662c 100644
--- a/module/os/linux/zfs/zfs_znode.c
+++ b/module/os/linux/zfs/zfs_znode.c
@@ -54,7 +54,7 @@
#include <sys/dmu.h>
#include <sys/dmu_objset.h>
#include <sys/dmu_tx.h>
-#include <sys/refcount.h>
+#include <sys/zfs_refcount.h>
#include <sys/stat.h>
#include <sys/zap.h>
#include <sys/zfs_znode.h>
diff --git a/module/zfs/arc.c b/module/zfs/arc.c
index 9e9227271..dcf710ad1 100644
--- a/module/zfs/arc.c
+++ b/module/zfs/arc.c
@@ -284,7 +284,7 @@
#include <sys/zio_checksum.h>
#include <sys/zfs_context.h>
#include <sys/arc.h>
-#include <sys/refcount.h>
+#include <sys/zfs_refcount.h>
#include <sys/vdev.h>
#include <sys/vdev_impl.h>
#include <sys/dsl_pool.h>
diff --git a/module/zfs/bpobj.c b/module/zfs/bpobj.c
index 00c3d7dfa..e75ba5ccc 100644
--- a/module/zfs/bpobj.c
+++ b/module/zfs/bpobj.c
@@ -26,7 +26,7 @@
#include <sys/bpobj.h>
#include <sys/zfs_context.h>
-#include <sys/refcount.h>
+#include <sys/zfs_refcount.h>
#include <sys/dsl_pool.h>
#include <sys/zfeature.h>
#include <sys/zap.h>
diff --git a/module/zfs/bptree.c b/module/zfs/bptree.c
index 164216213..1827a3c4e 100644
--- a/module/zfs/bptree.c
+++ b/module/zfs/bptree.c
@@ -33,7 +33,6 @@
#include <sys/dsl_dir.h>
#include <sys/dsl_pool.h>
#include <sys/dnode.h>
-#include <sys/refcount.h>
#include <sys/spa.h>
/*
diff --git a/module/zfs/dsl_deadlist.c b/module/zfs/dsl_deadlist.c
index 8cb0f90fb..3d16f61f6 100644
--- a/module/zfs/dsl_deadlist.c
+++ b/module/zfs/dsl_deadlist.c
@@ -25,7 +25,6 @@
*/
#include <sys/dmu.h>
-#include <sys/refcount.h>
#include <sys/zap.h>
#include <sys/zfs_context.h>
#include <sys/dsl_pool.h>
diff --git a/module/zfs/refcount.c b/module/zfs/refcount.c
index 6c9c305ed..39476261e 100644
--- a/module/zfs/refcount.c
+++ b/module/zfs/refcount.c
@@ -24,7 +24,7 @@
*/
#include <sys/zfs_context.h>
-#include <sys/refcount.h>
+#include <sys/zfs_refcount.h>
/*
* Reference count tracking is disabled by default. It's memory requirements
diff --git a/module/zfs/rrwlock.c b/module/zfs/rrwlock.c
index a2b784837..d23fc3ad1 100644
--- a/module/zfs/rrwlock.c
+++ b/module/zfs/rrwlock.c
@@ -26,7 +26,6 @@
* Copyright (c) 2012 by Delphix. All rights reserved.
*/
-#include <sys/refcount.h>
#include <sys/rrwlock.h>
#include <sys/trace_zfs.h>
diff --git a/module/zfs/space_map.c b/module/zfs/space_map.c
index 723fa0578..3db7d1991 100644
--- a/module/zfs/space_map.c
+++ b/module/zfs/space_map.c
@@ -34,7 +34,6 @@
#include <sys/dsl_pool.h>
#include <sys/zio.h>
#include <sys/space_map.h>
-#include <sys/refcount.h>
#include <sys/zfeature.h>
/*
diff --git a/module/zfs/vdev_indirect.c b/module/zfs/vdev_indirect.c
index fc49bad06..4cd83d79e 100644
--- a/module/zfs/vdev_indirect.c
+++ b/module/zfs/vdev_indirect.c
@@ -27,7 +27,6 @@
#include <sys/zio.h>
#include <sys/zio_checksum.h>
#include <sys/metaslab.h>
-#include <sys/refcount.h>
#include <sys/dmu.h>
#include <sys/vdev_indirect_mapping.h>
#include <sys/dmu_tx.h>
diff --git a/module/zfs/vdev_initialize.c b/module/zfs/vdev_initialize.c
index 0d45d9958..ab711441d 100644
--- a/module/zfs/vdev_initialize.c
+++ b/module/zfs/vdev_initialize.c
@@ -27,7 +27,6 @@
#include <sys/spa_impl.h>
#include <sys/txg.h>
#include <sys/vdev_impl.h>
-#include <sys/refcount.h>
#include <sys/metaslab_impl.h>
#include <sys/dsl_synctask.h>
#include <sys/zap.h>
diff --git a/module/zfs/vdev_trim.c b/module/zfs/vdev_trim.c
index 0254c2904..a655e2fd2 100644
--- a/module/zfs/vdev_trim.c
+++ b/module/zfs/vdev_trim.c
@@ -29,7 +29,6 @@
#include <sys/txg.h>
#include <sys/vdev_impl.h>
#include <sys/vdev_trim.h>
-#include <sys/refcount.h>
#include <sys/metaslab_impl.h>
#include <sys/dsl_synctask.h>
#include <sys/zap.h>
diff --git a/module/zfs/zap.c b/module/zfs/zap.c
index 1abb32fdf..c0c280c52 100644
--- a/module/zfs/zap.c
+++ b/module/zfs/zap.c
@@ -45,7 +45,6 @@
#include <sys/zfs_znode.h>
#include <sys/fs/zfs.h>
#include <sys/zap.h>
-#include <sys/refcount.h>
#include <sys/zap_impl.h>
#include <sys/zap_leaf.h>
diff --git a/module/zfs/zap_micro.c b/module/zfs/zap_micro.c
index 644f4bab1..5d9bc2076 100644
--- a/module/zfs/zap_micro.c
+++ b/module/zfs/zap_micro.c
@@ -31,7 +31,6 @@
#include <sys/dmu.h>
#include <sys/zfs_context.h>
#include <sys/zap.h>
-#include <sys/refcount.h>
#include <sys/zap_impl.h>
#include <sys/zap_leaf.h>
#include <sys/avl.h>
diff --git a/module/zfs/zfs_fuid.c b/module/zfs/zfs_fuid.c
index fbd06be4f..726b923fa 100644
--- a/module/zfs/zfs_fuid.c
+++ b/module/zfs/zfs_fuid.c
@@ -26,7 +26,6 @@
#include <sys/dmu.h>
#include <sys/avl.h>
#include <sys/zap.h>
-#include <sys/refcount.h>
#include <sys/nvpair.h>
#ifdef _KERNEL
#include <sys/sid.h>