config: remove HAVE_PERCPU_COUNTER_INIT_WITH_GFP

Sponsored-by: https://despairlabs.com/sponsor/
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Closes #16479
This commit is contained in:
Rob Norris
2024-08-03 14:01:15 +10:00
committed by Tony Hutter
parent b2802da49e
commit 339b126bac
7 changed files with 1 additions and 84 deletions
+1 -3
View File
@@ -23,7 +23,6 @@
#define SPL_KMEM_CACHE_IMPLEMENTING
#include <linux/percpu_compat.h>
#include <sys/kmem.h>
#include <sys/kmem_cache.h>
#include <sys/taskq.h>
@@ -728,8 +727,7 @@ spl_kmem_cache_create(const char *name, size_t size, size_t align,
skc->skc_obj_emergency = 0;
skc->skc_obj_emergency_max = 0;
rc = percpu_counter_init_common(&skc->skc_linux_alloc, 0,
GFP_KERNEL);
rc = percpu_counter_init(&skc->skc_linux_alloc, 0, GFP_KERNEL);
if (rc != 0) {
kfree(skc);
return (NULL);
-1
View File
@@ -21,7 +21,6 @@
* with the SPL. If not, see <http://www.gnu.org/licenses/>.
*/
#include <linux/percpu_compat.h>
#include <sys/debug.h>
#include <sys/vmem.h>
#include <sys/kmem_cache.h>
-1
View File
@@ -53,7 +53,6 @@
*/
#include <linux/percpu_compat.h>
#include <sys/kmem.h>
#include <sys/kmem_cache.h>
#include <sys/zmod.h>