commit | d224e938189771dbd1e3b68ee8603a949bee76bb | [log] [tgz] |
---|---|---|
author | Michal Hocko <[email protected]> | Mon May 08 15:57:34 2017 -0700 |
committer | Linus Torvalds <[email protected]> | Mon May 08 17:15:13 2017 -0700 |
tree | a1421bda5284b52c06f02970912bf920a405f8e4 | |
parent | da6bc57a8f02dd90d07071b4cd067f2de26c9192 [diff] |
drivers/md/dm-ioctl.c: use kvmalloc rather than opencoded variant copy_params uses kmalloc with vmalloc fallback. We already have a helper for that - kvmalloc. This caller requires GFP_NOIO semantic so it hasn't been converted with many others by previous patches. All we need to achieve this semantic is to use the scope memalloc_noio_{save,restore} around kvmalloc. Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Michal Hocko <[email protected]> Acked-by: Vlastimil Babka <[email protected]> Cc: Mikulas Patocka <[email protected]> Cc: Mike Snitzer <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>