]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Replace global list for grouplist with list(s) for each exportlist element.
authorrmacklem <rmacklem@FreeBSD.org>
Tue, 14 May 2019 22:00:47 +0000 (22:00 +0000)
committerrmacklem <rmacklem@FreeBSD.org>
Tue, 14 May 2019 22:00:47 +0000 (22:00 +0000)
commit1d91d4ba68984c18b8b5d39644edf6a7f045305d
treed8ffec32b18855a62cbb9815d449be6c9734975c
parent46ad7dbca8a28eaa926e794515d1b0f2e0bf6e26
Replace global list for grouplist with list(s) for each exportlist element.

In mountd.c, the grouplist structures are linked into a single global
linked list headed by "grphead". The only use of this linked list is
to free all list elements when the exportlist elements are also all being
free'd at the time the exports are being reloaded.
This patch replaces this one global linked list head with a list head in
each exportlist structure, where the grouplist elements for that exported
file system are linked.
The only change is that now the grouplist elements are free'd with the
associated exportlist element as they are free'd instead of all grouplist
elements being free'd after the exportlist elements are free'd. This
change should have no effect in practice.
This is being done, since a future patch that will add a "-I" option for
incrementally updating the exports in the kernel needs to know which
grouplist elements are associated with each exported file system and
having them linked into a list headed by the exportlist element does that.

MFC after: 1 month
usr.sbin/mountd/mountd.c