summaryrefslogtreecommitdiff
path: root/sys/src/9/port/devshr.c
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2015-08-09 21:16:10 +0200
committercinap_lenrek <cinap_lenrek@felloff.net>2015-08-09 21:16:10 +0200
commit9f4eac529243e21ae310ad3a07139d9981f1ce9c (patch)
tree87526675289ef6f56cb0882c38d45fab707d0fa3 /sys/src/9/port/devshr.c
parent3af236b5e36951ba637d59e4d0362cdb0e428bd2 (diff)
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.
Diffstat (limited to 'sys/src/9/port/devshr.c')
-rw-r--r--sys/src/9/port/devshr.c2
1 files changed, 0 insertions, 2 deletions
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;
}