]> git.decadent.org.uk Git - nfs-utils.git/commitdiff
mountd: simplify export list deferral in v4root_set
authorJ. Bruce Fields <bfields@citi.umich.edu>
Sat, 9 Jan 2010 17:26:41 +0000 (10:26 -0700)
committerSteve Dickson <steved@redhat.com>
Wed, 13 Jan 2010 20:39:14 +0000 (15:39 -0500)
We're adding new entries, but not deleting them, so we don't need to do
the usual double-counter trick here.

Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
utils/mountd/v4root.c

index b0a10c8d319338eb3e6d90b408f004ff77d4007a..ac800b3dbc6d0826139e9db5e17950707663370e 100644 (file)
@@ -147,7 +147,7 @@ int pseudofs_update(char *hostname, char *path, nfs_export *source)
 void
 v4root_set()
 {
-       nfs_export      *exp, *nxt;
+       nfs_export      *exp;
        int     i;
        char *path, *ptr;
        char *hostname;
@@ -158,8 +158,7 @@ v4root_set()
                return;
 
        for (i = 0; i < MCL_MAXTYPES; i++) {
-               for (exp = exportlist[i].p_head; exp; exp = nxt) {
-                       nxt = exp->m_next;
+               for (exp = exportlist[i].p_head; exp; exp = exp->m_next) {
                        hostname = exp->m_export.e_hostname;
 
                        if (exp->m_export.e_flags & NFSEXP_V4ROOT)