drivers/md/bcache/super.c: use kvmalloc
authorMichal Hocko <[email protected]>
Mon, 8 May 2017 22:57:37 +0000 (15:57 -0700)
committerLinus Torvalds <[email protected]>
Tue, 9 May 2017 00:15:13 +0000 (17:15 -0700)
commitbc4e54f6e966e9ca35064cd60f91b1478c07a1b2
tree125ce2441c6a621067bcf346c8cc6a04aef2b1b7
parentd224e938189771dbd1e3b68ee8603a949bee76bb
drivers/md/bcache/super.c: use kvmalloc

bcache_device_init uses kmalloc for small requests and vmalloc for those
which are larger than 64 pages.  This alone is a strange criterion.
Moreover kmalloc can fallback to vmalloc on the failure.  Let's simply
use kvmalloc instead as it knows how to handle the fallback properly

Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Michal Hocko <[email protected]>
Acked-by: Vlastimil Babka <[email protected]>
Cc: Kent Overstreet <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
drivers/md/bcache/super.c