Skip to contentSkip to conversation

S390: Use shorter form of "get_zeroed_page".

PATCH Ursula Braun1 1 participant 1 message Feb 12, 2008 1 message not in the archive

Subsystems (3)
lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

Robert,

thanks for your qeth-patch. We have already included your patch into our local kernel repository. Since we are currently on the way to replace the current qeth-driver by a reworked qeth-driver, you will see your patch included once the reworked qeth driver is upstream.

Regards, Ursula Braun
IBM Germany, Linux on System z Dev.

IBM Deutschland Entwicklung GmbH Vorsitzender des Aufsichtsrats: Martin Jetter Gesch�ftsf�hrung: Herbert Kircher
Sitz der Gesellschaft: B�blingen
Registergericht: Amtsgericht Stuttgart, HRB 243294

"Robert P. J.
Day"
<rpjday@crashcour To
se.ca> [email protected]
Sent by: cc
linux-s390-owner@
vger.kernel.org Subject
[PATCH] S390: Use shorter form of "get_zeroed_page".
10.02.2008 21:53

---

drivers/s390/net/qeth_eddp.c +0 -0
index e3c268c..556e8ba 100644
@@ -564,14 +564,13 @@ qeth_eddp_create_context_generic(struct qeth_card

*card, struct sk_buff *skb,

                         return NULL;
             }
             for (i = 0; i < ctx->num_pages; ++i){
-                        addr = (u8 *)__get_free_page(GFP_ATOMIC);
+                        addr = (u8 *)get_zeroed_page(GFP_ATOMIC);
                         if (addr == NULL){
                                     QETH_DBF_TEXT(trace, 2, "ceddpcn3");
                                     ctx->num_pages = i;
                                     qeth_eddp_free_context(ctx);
                                     return NULL;
                         }
-                        memset(addr, 0, PAGE_SIZE);
                         ctx->pages[i] = addr;
             }
             ctx->elements = kcalloc(ctx->num_elements,

========================================================================
Robert P. J. Day
Linux Consulting, Training and Annoying Kernel Pedantry Waterloo, Ontario, CANADA

Home page:                                         http://crashcourse.ca
Fedora Cookbook:    http://crashcourse.ca/wiki/index.php/Fedora_Cookbook

========================================================================