]> granicus.if.org Git - zfs/commit
Linux 4.16 compat: use correct *_dec_and_test()
authorTony Hutter <hutter2@llnl.gov>
Thu, 22 Feb 2018 17:02:06 +0000 (09:02 -0800)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 22 Feb 2018 17:02:06 +0000 (09:02 -0800)
commita5369b61a24cf75d8188af8ee554123cf7fae14c
tree66ef630cb10c474df00353b48532963f3d3dbb73
parentf8478fc2ca8d62f9562a4284426e8d3bd41c0cf0
Linux 4.16 compat: use correct *_dec_and_test()

Use refcount_dec_and_test() on 4.16+ kernels, atomic_dec_and_test()
on older kernels.  https://lwn.net/Articles/714974/

Reviewed-by: Giuseppe Di Natale <dinatale2@llnl.gov>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Tony Hutter <hutter2@llnl.gov>
Closes: #7179
Closes: #7211
config/kernel-acl-refcount.m4 [new file with mode: 0644]
config/kernel.m4
include/linux/vfs_compat.h