HomeFreeBSD

Linux 4.11 compat: avoid refcount_t name conflict

Description

Linux 4.11 compat: avoid refcount_t name conflict

Related to commit 4859fe796, when directly using the kernel's
refcount functions in kernel compatibility code do not map
refcount_t to zfs_refcount_t. This leads to a type mismatch.

Longer term we should consider renaming refcount_t to
zfs_refcount_t in the zfs code base.

Reviewed-by: Olaf Faaland <faaland1@llnl.gov>
Reviewed-by: Giuseppe Di Natale <dinatale2@llnl.gov>
Reviewed-by: Chunwei Chen <david.chen@nutanix.com>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #7148

Details

Provenance
Brian Behlendorf <behlendorf1@llnl.gov>Authored on Feb 8 2018, 10:31 PM
Parents
rG18f57327e0c2: Linux 4.16 compat: inode_set_iversion()
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rGf54976dc8815: Linux 4.11 compat: avoid refcount_t name conflict (authored by Brian Behlendorf <behlendorf1@llnl.gov>).Feb 9 2018, 5:25 AM