]> git.decadent.org.uk Git - nfs-utils.git/commitdiff
mountd: minor optimization in v4root_set
authorJ. Bruce Fields <bfields@citi.umich.edu>
Sat, 9 Jan 2010 17:22:17 +0000 (10:22 -0700)
committerSteve Dickson <steved@redhat.com>
Wed, 13 Jan 2010 20:39:14 +0000 (15:39 -0500)
Since we're adding new exports as we traverse the export list, it's
possible we may find ourselves revisiting an export we just added.  It's
harmless to reprocess those exports, as we're currently doing.  But it's
also pointless.

(Actually, the current code appears to always add new export entries at
the head of each list, so we shouldn't hit this case.  It still may be a
good idea to keep this check, though, as insulation against future
changes to that data structure.)

Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>

No differences found