From mboxrd@z Thu Jan 1 00:00:00 1970 From: SF Markus Elfring Date: Fri, 09 Dec 2016 20:05:45 +0000 Subject: Re: md: Combine two kmalloc() calls into one in sb_equal() Message-Id: List-Id: References: <1481310314.5946.40.camel@perches.com> In-Reply-To: <1481310314.5946.40.camel@perches.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Joe Perches Cc: linux-raid@vger.kernel.org, Shaohua Li , LKML , kernel-janitors@vger.kernel.org > 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