]> git.baikalelectronics.ru Git - kernel.git/commit
dm bufio: get rid of slab cache name allocations
authorMikulas Patocka <mpatocka@redhat.com>
Thu, 15 Mar 2018 21:16:07 +0000 (17:16 -0400)
committerMike Snitzer <snitzer@redhat.com>
Tue, 3 Apr 2018 19:04:24 +0000 (15:04 -0400)
commitde2d16bc8194017f9cde055e32a54d35e41849ad
treee13e07439010e4383c04986b208e0f7560f55a1a
parentf787069c3b38a8f3fe053a2814e09f3fd2b4b2ad
dm bufio: get rid of slab cache name allocations

dm-bufio keeps the dm_bufio_cache_names array that holds names of the
slab caches.

Since the commit 541b36f2b092 ("mm/sl[aou]b: Move duping of slab name to
slab_common.c"), the kernel automatically duplicates the slab cache name
when creating the slab cache, so we no longer have to keep the name
allocated.

Remove the code that allocates the slab names and keeps them around.

Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm-bufio.c