Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752627AbcLIUGK (ORCPT ); Fri, 9 Dec 2016 15:06:10 -0500 Received: from mout.web.de ([217.72.192.78]:49184 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751129AbcLIUGI (ORCPT ); Fri, 9 Dec 2016 15:06:08 -0500 Subject: Re: md: Combine two kmalloc() calls into one in sb_equal() To: Joe Perches References: <1481310314.5946.40.camel@perches.com> Cc: linux-raid@vger.kernel.org, Shaohua Li , LKML , kernel-janitors@vger.kernel.org From: SF Markus Elfring Message-ID: Date: Fri, 9 Dec 2016 21:05:45 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1 MIME-Version: 1.0 In-Reply-To: <1481310314.5946.40.camel@perches.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:v3xV7MjLKiXKgiUYBMcCu3Gl4AFEQc/nKaa3ASBs8QzG0og2s/u QHb89fFpcMOEAWGVrLeJdRLD0nKal7dc1aX0S3Ybtfk+OB3BzA6aFaOJdiN4/m7UnCqTmVX xH1sTtnMHuJeFXLJGduugkzb83Gg9TLMRngnpeVKdRxBwAo8XgA5jVXtbuxKnGtlOXnkUom PkxXEvKJn4/77funCB6Eg== X-UI-Out-Filterresults: notjunk:1;V01:K0:yF/L4w7vol8=:wkpE0zvNlEbIUBZ/xzdUcm 8DXCfadcTjkZgC8yqP6QIY5FFMg/TA9KwOCmOT+S2cGpB2Lr7rPbltH9k6IX7X7DdgPsuA6hW R3/zzAZDldUJcCxkIK6MheqCnlttIg8EXH/4slZqWhLema6z+yUzR3WNBuiROBz7zqCNrmvTL r3Cq0WqYF4NOOjaT0rd5EN4EOt7n4SSNvpS9a39dK2P1LF6Dk9oBVXNn9uqXns6UKF7IQ5trI r4ZgqYemG7vJqnJXkSvjIlKwJ2D7Is9dIIiCYrIoemiKooqGXJYW/ZT0UqyHyVgThZUs4Eqjy gzw05Zdqs0ck+pBHO9NKHvWefHjedJFAwK02Baze6CcZCs2EAlmilsNg1kH2/AsSG8ScukwF8 66qjp6VQpBFTKQ1qzHwetVPXQIMLOur3uwjdsRi2vjFeRXg+PRdFanQAkesXF7V4JcRe0oaM1 iJP1yPfin6/rJvY1gVsFD5f53AE6/0vl5rPzLqer3OGzAqggtWJwwYd39mKEXt1+0GgBHFR1e rCFscpM+0hnXBc0Brha8//1idaRBETpU6MrbGL1amqywboltf6M1sVnz9+rB6+DW/cyL2NFis y789OQeLT5dKJrlI+W2PHPw+hLUPceiXTW3g58TdHIUqxpi7lWgZvhan+kXaKj5mrHJprNxZO +SdWO0YkKKzw9ckcUlrO5+PlQfCtk8vo8LNVl3yXjyDflLCUNmURLniNRE+fo0UykrpNpwG83 MCjO2s99XNSuarVPDsnwJk+WbIrJipVfaYM56xd3gY4IgECRZ2uMFKRqiava66QiiU6+vV/WR ptVkZet Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 244 Lines: 7 > 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