From 9f4eac529243e21ae310ad3a07139d9981f1ce9c Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Sun, 9 Aug 2015 21:16:10 +0200 Subject: kernel: pgrpcpy(), simplify Mount structure instead of ordering the source mount list, order the new destination list which has the advantage that we do not need to wlock the source namespace, so copying can be done in parallel and we do not need the copy forward pointer in the Mount structure. the Mhead back pointer in the Mount strcture was unused, removed. --- sys/src/9/port/devshr.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'sys/src/9/port/devshr.c') diff --git a/sys/src/9/port/devshr.c b/sys/src/9/port/devshr.c index 03a79bc8a..bc7677210 100644 --- a/sys/src/9/port/devshr.c +++ b/sys/src/9/port/devshr.c @@ -531,7 +531,6 @@ shrcreate(Chan *c, char *name, int omode, ulong perm) incref(mpt); mpt->m.mflag = (h->mount == nil) ? MCREATE : 0; - mpt->m.head = h; mpt->m.next = h->mount; h->mount = &mpt->m; @@ -602,7 +601,6 @@ shrremove(Chan *c) if(*ml == m){ *ml = m->next; m->next = nil; - m->head = nil; putmpt(mpt); break; } -- cgit v1.2.3