HomeFreeBSD

nfsv4 client: replace while loops with LIST_FOREACH() loops

Description

nfsv4 client: replace while loops with LIST_FOREACH() loops

This patch replaces a couple of while() loops with LIST_FOREACH() loops.
While here, declare a couple of variables "bool".
I think LIST_FOREACH() is preferred and makes the code more readable.
This also prepares the code for future changes to use a hash table of
lists for open searches via file handle.

This patch should not result in a semantics change.

(cherry picked from commit fdc9b2d50fe905b54afd773a2fc7fb9947508ddf)

Details

Provenance
rmacklemAuthored on Mar 29 2021, 9:14 PM
Parents
rG968a4d11b881: nfsv4.1/4.2 client: fix handling of delegations for "oneopenown" mnt option
Branches
Unknown
Tags
Unknown