]> git.proxmox.com Git - mirror_zfs.git/commit
Linux 4.11 compat: avoid refcount_t name conflict
authorOlaf Faaland <faaland1@llnl.gov>
Wed, 1 Mar 2017 00:10:18 +0000 (16:10 -0800)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 1 Mar 2017 00:10:18 +0000 (16:10 -0800)
commit4859fe796c5b03687a7b2ab3735b882c4f5cad66
tree197549665cc7fe999404a268da9fc6d44501b308
parent912e2ba92f45b61df476e7e15da33e0ea3eb0ae5
Linux 4.11 compat: avoid refcount_t name conflict

Linux 4.11 introduces a new type, refcount_t, which conflicts with the
type of the same name defined within ZFS.

Rename the ZFS type zfs_refcount_t.  Within the ZFS code, use a macro to
cause references to refcount_t to be changed to zfs_refcount_t at
compile time.  This reduces conflicts when later landing OpenZFS
patches.

Reviewed-by: George Melikov <mail@gmelikov.ru>
Reviewed-by: Giuseppe Di Natale <dinatale2@llnl.gov>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Olaf Faaland <faaland1@llnl.gov>
Closes #5823
Closes #5842
include/sys/refcount.h
module/zfs/refcount.c