commit | bc4e54f6e966e9ca35064cd60f91b1478c07a1b2 | [log] [tgz] |
---|---|---|
author | Michal Hocko <[email protected]> | Mon May 08 15:57:37 2017 -0700 |
committer | Linus Torvalds <[email protected]> | Mon May 08 17:15:13 2017 -0700 |
tree | 125ce2441c6a621067bcf346c8cc6a04aef2b1b7 | |
parent | d224e938189771dbd1e3b68ee8603a949bee76bb [diff] |
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]>