[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <b992386f-bf20-8483-d7dd-ee4c29625ecb@users.sourceforge.net>
Date: Fri, 9 Dec 2016 22:58:22 +0100
From: SF Markus Elfring <elfring@...rs.sourceforge.net>
To: Bernd Schubert <bernd.schubert@...tmail.fm>
Cc: linux-raid@...r.kernel.org, Shaohua Li <shli@...nel.org>,
LKML <linux-kernel@...r.kernel.org>,
kernel-janitors@...r.kernel.org
Subject: Re: md: Combine two kmalloc() calls into one in sb_equal()
> Irrelevant, the variable is not used before checking it.
* Will it be more appropriate to attempt another memory allocation only if
the previous one succeeded already?
* Can it be a bit more efficient to duplicate only the required data
in a single function call before?
Regards,
Markus
Powered by blists - more mailing lists