]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
nfsv4 client: replace while loops with LIST_FOREACH() loops
authorRick Macklem <rmacklem@FreeBSD.org>
Mon, 29 Mar 2021 21:14:51 +0000 (14:14 -0700)
committerRick Macklem <rmacklem@FreeBSD.org>
Mon, 29 Mar 2021 21:14:51 +0000 (14:14 -0700)
commitfdc9b2d50fe905b54afd773a2fc7fb9947508ddf
treed01e6eca5e6b965db5e3fa5908f93d1d2f46d78e
parentbefb0817bd5e47588eb0254744daec02488acd72
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
sys/fs/nfsclient/nfs_clstate.c