mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 02:27:36 +03:00
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:
@@ -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);
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -53,7 +53,6 @@
|
||||
*/
|
||||
|
||||
|
||||
#include <linux/percpu_compat.h>
|
||||
#include <sys/kmem.h>
|
||||
#include <sys/kmem_cache.h>
|
||||
#include <sys/zmod.h>
|
||||
|
||||
Reference in New Issue
Block a user