]> 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)
committerTony Hutter <hutter2@llnl.gov>
Wed, 14 Mar 2018 23:10:37 +0000 (16:10 -0700)
commite5ba614d05bde1e98ba46d5b75cf6b8a0701c2ca
tree150a63628372805d3ae840ff2d01bd2887fcfca7
parent30ac8de48a2bb680e15dfe8879faaa7b461b771c
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