Skip to contentSkip to conversation

xen-netback: remove dead code

PATCH Applied Wei Liu 2 participants 3 messages May 17, 2013 – May 18, 2013

Subsystems (3)
lore
Share & tools
lore

Wei Liu

author
#0 lore raw

PATCH 1/1 xen-netback: remove dead code

The array mmap_pages is never touched in the initialization function. This is remnant of mapping mechanism, which does not exist upstream. In current upstream code this array only tracks usage of pages inside netback. Those pages are allocated when contructing a SKB and passed directly to network subsystem.

---
 drivers/net/xen-netback/netback.c |    4 ----
 1 file changed, 4 deletions(-)
drivers/net/xen-netback/netback.c +0 -4
index 37984e6..295a9c2 100644
@@ -1939,10 +1939,6 @@ static int __init netback_init(void)
 failed_init:
 	while (--group >= 0) {
 		struct xen_netbk *netbk = &xen_netbk[group];
-		for (i = 0; i < MAX_PENDING_REQS; i++) {
-			if (netbk->mmap_pages[i])
-				__free_page(netbk->mmap_pages[i]);
-		}
 		del_timer(&netbk->net_timer);
 		kthread_stop(netbk->task);
 	}
Signature · 1 line
1.7.10.4
maintainer Applied
#1 lore raw

From: Wei Liu <[email protected]>
Date: Fri, 17 May 2013 10:24:28 +0100

Quoted 8 lines

The array mmap_pages is never touched in the initialization function. This is remnant of mapping mechanism, which does not exist upstream. In current upstream code this array only tracks usage of pages inside netback. Those pages are allocated when contructing a SKB and passed directly to network subsystem.

Applied.

maintainer Applied
#2 lore raw
In reply to Wei Liu

From: Wei Liu <[email protected]>
Date: Fri, 17 May 2013 10:24:28 +0100

Quoted 8 lines

The array mmap_pages is never touched in the initialization function. This is remnant of mapping mechanism, which does not exist upstream. In current upstream code this array only tracks usage of pages inside netback. Those pages are allocated when contructing a SKB and passed directly to network subsystem.

Applied.