]> git.ipfire.org Git - thirdparty/linux.git/blobdiff - drivers/mtd/mtdcore.c
Merge tag 'for-5.8/block-2020-06-01' of git://git.kernel.dk/linux-block
[thirdparty/linux.git] / drivers / mtd / mtdcore.c
index 29d41003d6e0d2f57e625db58df115a5d18de487..b47691e1b81cc54452b361a04d4e41b17e641919 100644 (file)
@@ -2036,11 +2036,10 @@ static struct backing_dev_info * __init mtd_bdi_init(char *name)
        struct backing_dev_info *bdi;
        int ret;
 
-       bdi = bdi_alloc(GFP_KERNEL);
+       bdi = bdi_alloc(NUMA_NO_NODE);
        if (!bdi)
                return ERR_PTR(-ENOMEM);
 
-       bdi->name = name;
        /*
         * We put '-0' suffix to the name to get the same name format as we
         * used to get. Since this is called only once, we get a unique name.