From mboxrd@z Thu Jan 1 00:00:00 1970 From: Joe Perches Date: Fri, 09 Dec 2016 20:51:56 +0000 Subject: Re: md: Combine two kmalloc() calls into one in sb_equal() Message-Id: <1481316716.5946.42.camel@perches.com> List-Id: References: <1481310314.5946.40.camel@perches.com> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: SF Markus Elfring Cc: linux-raid@vger.kernel.org, Shaohua Li , LKML , kernel-janitors@vger.kernel.org On Fri, 2016-12-09 at 21:05 +0100, SF Markus Elfring wrote: > > 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? No. If there were, there would be a good argument to remove it.