Fix namespace collision after src/sys/sys/file.h:1.78.
This commit is contained in:
parent
e75a451fc0
commit
d546148e70
@ -42,7 +42,7 @@ static kmem_cache_t *reference_cache;
|
||||
static kmem_cache_t *reference_history_cache;
|
||||
|
||||
void
|
||||
refcount_init(void)
|
||||
refcount_sysinit(void)
|
||||
{
|
||||
reference_cache = kmem_cache_create("reference_cache",
|
||||
sizeof (reference_t), 0, NULL, NULL, NULL, NULL, NULL, 0);
|
||||
|
@ -1103,7 +1103,7 @@ spa_init(int mode)
|
||||
|
||||
spa_mode = mode;
|
||||
|
||||
refcount_init();
|
||||
refcount_sysinit();
|
||||
unique_init();
|
||||
zio_init();
|
||||
dmu_init();
|
||||
|
@ -28,6 +28,7 @@
|
||||
|
||||
#pragma ident "%Z%%M% %I% %E% SMI"
|
||||
|
||||
#include_next <sys/refcount.h>
|
||||
#include <sys/list.h>
|
||||
#include <sys/zfs_context.h>
|
||||
|
||||
@ -70,7 +71,7 @@ int64_t refcount_remove(refcount_t *rc, void *holder_tag);
|
||||
int64_t refcount_add_many(refcount_t *rc, uint64_t number, void *holder_tag);
|
||||
int64_t refcount_remove_many(refcount_t *rc, uint64_t number, void *holder_tag);
|
||||
|
||||
void refcount_init(void);
|
||||
void refcount_sysinit(void);
|
||||
void refcount_fini(void);
|
||||
|
||||
#else /* DEBUG */
|
||||
@ -91,7 +92,7 @@ typedef struct refcount {
|
||||
#define refcount_remove_many(rc, number, holder) \
|
||||
atomic_add_64_nv(&(rc)->rc_count, -number)
|
||||
|
||||
#define refcount_init()
|
||||
#define refcount_sysinit()
|
||||
#define refcount_fini()
|
||||
|
||||
#endif /* DEBUG */
|
||||
|
Loading…
Reference in New Issue
Block a user