mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 02:27:36 +03:00
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 <ryan@ixsystems.com> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Matt Macy <mmacy@FreeBSD.org> Closes #10620
This commit is contained in:
@@ -119,7 +119,7 @@ extern "C" {
|
||||
#define __CONST __sun_attr__((__const__))
|
||||
#define __PURE __sun_attr__((__pure__))
|
||||
|
||||
#ifdef INVARIANTS
|
||||
#if defined(INVARIANTS) && !defined(ZFS_DEBUG)
|
||||
#define ZFS_DEBUG
|
||||
#undef NDEBUG
|
||||
#endif
|
||||
|
||||
@@ -30,7 +30,6 @@
|
||||
#define _OPENSOLARIS_SYS_FILE_H_
|
||||
|
||||
#include <sys/refcount.h>
|
||||
#include_next <sys/refcount.h>
|
||||
#include_next <sys/file.h>
|
||||
|
||||
#define FKIOCTL 0x80000000 /* ioctl addresses are from kernel */
|
||||
|
||||
@@ -53,7 +53,7 @@ enum symfollow { NO_FOLLOW = NOFOLLOW };
|
||||
#include <sys/mount.h>
|
||||
#include <sys/cred.h>
|
||||
#include <sys/fcntl.h>
|
||||
#include_next <sys/refcount.h>
|
||||
#include <sys/refcount.h>
|
||||
#include <sys/file.h>
|
||||
#include <sys/filedesc.h>
|
||||
#include <sys/syscallsubr.h>
|
||||
|
||||
@@ -57,7 +57,6 @@ COMMON_H = \
|
||||
pathname.h \
|
||||
qat.h \
|
||||
range_tree.h \
|
||||
refcount.h \
|
||||
rrwlock.h \
|
||||
sa.h \
|
||||
sa_impl.h \
|
||||
@@ -111,6 +110,7 @@ COMMON_H = \
|
||||
zfs_project.h \
|
||||
zfs_quota.h \
|
||||
zfs_ratelimit.h \
|
||||
zfs_refcount.h \
|
||||
zfs_rlock.h \
|
||||
zfs_sa.h \
|
||||
zfs_stat.h \
|
||||
|
||||
+1
-1
@@ -28,7 +28,7 @@
|
||||
|
||||
#include <sys/isa_defs.h>
|
||||
#include <sys/debug.h>
|
||||
#include <sys/refcount.h>
|
||||
#include <sys/zfs_refcount.h>
|
||||
#include <sys/uio.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
+1
-1
@@ -36,7 +36,7 @@ extern "C" {
|
||||
#include <sys/zio.h>
|
||||
#include <sys/dmu.h>
|
||||
#include <sys/spa.h>
|
||||
#include <sys/refcount.h>
|
||||
#include <sys/zfs_refcount.h>
|
||||
|
||||
/*
|
||||
* Used by arc_flush() to inform arc_evict_state() that it should evict
|
||||
|
||||
+1
-1
@@ -34,7 +34,7 @@
|
||||
#include <sys/zio.h>
|
||||
#include <sys/arc.h>
|
||||
#include <sys/zfs_context.h>
|
||||
#include <sys/refcount.h>
|
||||
#include <sys/zfs_refcount.h>
|
||||
#include <sys/zrlock.h>
|
||||
#include <sys/multilist.h>
|
||||
|
||||
|
||||
@@ -32,7 +32,7 @@
|
||||
#include <sys/inttypes.h>
|
||||
#include <sys/dmu.h>
|
||||
#include <sys/txg.h>
|
||||
#include <sys/refcount.h>
|
||||
#include <sys/zfs_refcount.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
||||
+1
-1
@@ -32,7 +32,7 @@
|
||||
#include <sys/spa.h>
|
||||
#include <sys/txg.h>
|
||||
#include <sys/zio.h>
|
||||
#include <sys/refcount.h>
|
||||
#include <sys/zfs_refcount.h>
|
||||
#include <sys/dmu_zfetch.h>
|
||||
#include <sys/zrlock.h>
|
||||
#include <sys/multilist.h>
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
#define _SYS_DSL_BOOKMARK_H
|
||||
|
||||
#include <sys/zfs_context.h>
|
||||
#include <sys/refcount.h>
|
||||
#include <sys/zfs_refcount.h>
|
||||
#include <sys/dsl_dataset.h>
|
||||
#include <sys/dsl_pool.h>
|
||||
|
||||
|
||||
@@ -36,7 +36,7 @@
|
||||
#include <sys/dsl_synctask.h>
|
||||
#include <sys/zfs_context.h>
|
||||
#include <sys/dsl_deadlist.h>
|
||||
#include <sys/refcount.h>
|
||||
#include <sys/zfs_refcount.h>
|
||||
#include <sys/rrwlock.h>
|
||||
#include <sys/dsl_crypt.h>
|
||||
#include <zfeature_common.h>
|
||||
|
||||
@@ -32,7 +32,7 @@
|
||||
#include <sys/dsl_deadlist.h>
|
||||
#include <sys/dsl_pool.h>
|
||||
#include <sys/dsl_synctask.h>
|
||||
#include <sys/refcount.h>
|
||||
#include <sys/zfs_refcount.h>
|
||||
#include <sys/zfs_context.h>
|
||||
#include <sys/dsl_crypt.h>
|
||||
#include <sys/bplist.h>
|
||||
|
||||
@@ -37,7 +37,7 @@ extern "C" {
|
||||
|
||||
#include <sys/inttypes.h>
|
||||
#include <sys/zfs_context.h>
|
||||
#include <sys/refcount.h>
|
||||
#include <sys/zfs_refcount.h>
|
||||
|
||||
extern uint_t rrw_tsd_key;
|
||||
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
#define _SYS_SA_IMPL_H
|
||||
|
||||
#include <sys/dmu.h>
|
||||
#include <sys/refcount.h>
|
||||
#include <sys/zfs_refcount.h>
|
||||
#include <sys/list.h>
|
||||
|
||||
/*
|
||||
|
||||
@@ -44,7 +44,7 @@
|
||||
#include <sys/uberblock_impl.h>
|
||||
#include <sys/zfs_context.h>
|
||||
#include <sys/avl.h>
|
||||
#include <sys/refcount.h>
|
||||
#include <sys/zfs_refcount.h>
|
||||
#include <sys/bplist.h>
|
||||
#include <sys/bpobj.h>
|
||||
#include <sys/dsl_crypt.h>
|
||||
|
||||
@@ -23,8 +23,8 @@
|
||||
* Copyright (c) 2012, 2015 by Delphix. All rights reserved.
|
||||
*/
|
||||
|
||||
#ifndef _SYS_REFCOUNT_H
|
||||
#define _SYS_REFCOUNT_H
|
||||
#ifndef _SYS_ZFS_REFCOUNT_H
|
||||
#define _SYS_ZFS_REFCOUNT_H
|
||||
|
||||
#include <sys/inttypes.h>
|
||||
#include <sys/list.h>
|
||||
@@ -21,7 +21,7 @@
|
||||
#define _SYS_ZIO_CRYPT_H
|
||||
|
||||
#include <sys/dmu.h>
|
||||
#include <sys/refcount.h>
|
||||
#include <sys/zfs_refcount.h>
|
||||
#if defined(__FreeBSD__) && defined(_KERNEL)
|
||||
#include <sys/freebsd_crypto.h>
|
||||
#else
|
||||
|
||||
Reference in New Issue
Block a user