From: Joe Perches <joe@perches.com>
To: SF Markus Elfring <elfring@users.sourceforge.net>
Cc: linux-raid@vger.kernel.org, Shaohua Li <shli@kernel.org>,
LKML <linux-kernel@vger.kernel.org>,
kernel-janitors@vger.kernel.org
Subject: Re: md: Combine two kmalloc() calls into one in sb_equal()
Date: Fri, 09 Dec 2016 20:51:56 +0000 [thread overview]
Message-ID: <1481316716.5946.42.camel@perches.com> (raw)
In-Reply-To: <e25d2f8a-8ee9-c541-dac4-a254502df293@users.sourceforge.net>
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.
WARNING: multiple messages have this Message-ID (diff)
From: Joe Perches <joe@perches.com>
To: SF Markus Elfring <elfring@users.sourceforge.net>
Cc: linux-raid@vger.kernel.org, Shaohua Li <shli@kernel.org>,
LKML <linux-kernel@vger.kernel.org>,
kernel-janitors@vger.kernel.org
Subject: Re: md: Combine two kmalloc() calls into one in sb_equal()
Date: Fri, 09 Dec 2016 12:51:56 -0800 [thread overview]
Message-ID: <1481316716.5946.42.camel@perches.com> (raw)
In-Reply-To: <e25d2f8a-8ee9-c541-dac4-a254502df293@users.sourceforge.net>
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.
next prev parent reply other threads:[~2016-12-09 20:51 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-12-09 18:30 [PATCH] md: Combine two kmalloc() calls into one in sb_equal() SF Markus Elfring
2016-12-09 18:30 ` SF Markus Elfring
2016-12-09 19:05 ` Joe Perches
2016-12-09 19:05 ` Joe Perches
2016-12-09 20:05 ` SF Markus Elfring
2016-12-09 20:05 ` SF Markus Elfring
2016-12-09 20:51 ` Joe Perches [this message]
2016-12-09 20:51 ` Joe Perches
2016-12-09 21:30 ` [PATCH] " Al Viro
2016-12-09 21:30 ` Al Viro
2016-12-09 21:57 ` Joe Perches
2016-12-09 21:57 ` Joe Perches
2016-12-09 19:09 ` Bernd Schubert
2016-12-09 19:09 ` Bernd Schubert
2016-12-09 19:54 ` SF Markus Elfring
2016-12-09 19:54 ` SF Markus Elfring
2016-12-09 21:18 ` Bernd Schubert
2016-12-09 21:18 ` Bernd Schubert
2016-12-09 21:58 ` SF Markus Elfring
2016-12-09 21:58 ` SF Markus Elfring
2016-12-09 22:04 ` Bernd Schubert
2016-12-09 22:04 ` Bernd Schubert
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1481316716.5946.42.camel@perches.com \
--to=joe@perches.com \
--cc=elfring@users.sourceforge.net \
--cc=kernel-janitors@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-raid@vger.kernel.org \
--cc=shli@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.