* [merged] zswap-improve-a-size-determination-in-zswap_frontswap_init.patch removed from -mm tree
@ 2017-07-07 19:11 akpm
0 siblings, 0 replies; only message in thread
From: akpm @ 2017-07-07 19:11 UTC (permalink / raw)
To: ddstreet, elfring, mm-commits, sjenning
The patch titled
Subject: mm/zswap.c: improve a size determination in zswap_frontswap_init()
has been removed from the -mm tree. Its filename was
zswap-improve-a-size-determination-in-zswap_frontswap_init.patch
This patch was dropped because it was merged into mainline or a subsystem tree
------------------------------------------------------
From: Markus Elfring <elfring@users.sourceforge.net>
Subject: mm/zswap.c: improve a size determination in zswap_frontswap_init()
Replace the specification of a data structure by a pointer dereference as
the parameter for the operator "sizeof" to make the corresponding size
determination a bit safer according to the Linux coding style convention.
Link: http://lkml.kernel.org/r/19f9da22-092b-f867-bdf6-f4dbad7ccf1f@users.sourceforge.net
Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Cc: Dan Streetman <ddstreet@ieee.org>
Cc: Seth Jennings <sjenning@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
mm/zswap.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff -puN mm/zswap.c~zswap-improve-a-size-determination-in-zswap_frontswap_init mm/zswap.c
--- a/mm/zswap.c~zswap-improve-a-size-determination-in-zswap_frontswap_init
+++ a/mm/zswap.c
@@ -1156,7 +1156,7 @@ static void zswap_frontswap_init(unsigne
{
struct zswap_tree *tree;
- tree = kzalloc(sizeof(struct zswap_tree), GFP_KERNEL);
+ tree = kzalloc(sizeof(*tree), GFP_KERNEL);
if (!tree) {
pr_err("alloc failed, zswap disabled for swap type %d\n", type);
return;
_
Patches currently in -mm which might be from elfring@users.sourceforge.net are
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2017-07-07 19:11 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-07-07 19:11 [merged] zswap-improve-a-size-determination-in-zswap_frontswap_init.patch removed from -mm tree akpm
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).