Re: md: Combine two kmalloc() calls into one in sb_equal()

From: SF Markus Elfring
Date: Fri Dec 09 2016 - 15:06:13 EST


> tmp1 = kmemdup(sb1, MD_SB_GENERIC_CONSTANT_WORDS * sizeof(__u32), GFP_KERNEL);

Is a function available in the Linux programming interface which would duplicate
the beginning of two array elements in a single call directly?

Regards,
Markus