Whamcloud - gitweb
LU-11507 osd-zfs: Use zfs_refcount_add if available 59/33359/7
authorTony Hutter <hutter2@llnl.gov>
Thu, 11 Oct 2018 22:07:44 +0000 (15:07 -0700)
committerOleg Drokin <green@whamcloud.com>
Tue, 6 Nov 2018 06:40:02 +0000 (06:40 +0000)
commit89f8ee7f964d2598939ca483f522d6918915962c
treee0f9471b8b6a6b1fc493ea450378192664810e35
parentc36d70272541d3ba3dd9051e6f50cf89eaba639f
LU-11507 osd-zfs: Use zfs_refcount_add if available

refcount_add was removed from ZFS master in:

    Linux 4.19-rc3+ compat: Remove refcount_t compat
    https://github.com/zfsonlinux/zfs/pull/7932

It is expected to be removed in zfs-0.7.12 as well.  Update Lustre
to use zfs_refcount_add if zfs supports it, and fall back to
refcount_add if not.

Signed-off-by: Tony Hutter <hutter2@llnl.gov>
Change-Id: Ib1b2ff13eb4ff8c56dd49a427b9827c6649ecd31
Reviewed-on: https://review.whamcloud.com/33359
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Nathaniel Clark <nclark@whamcloud.com>
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
config/lustre-build-zfs.m4
lustre/osd-zfs/osd_internal.h
lustre/osd-zfs/osd_object.c