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.

MFC after: 2 weeks

Details

Provenance
rmacklemAuthored on Mar 29 2021, 9:14 PM
Parents
rGbefb0817bd5e: powerpc: implement bus_map_resource and bus_unmap_resource DEVMETHODs
Branches
Unknown
Tags
Unknown