]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
nfsv4 client: factor loop contents out into a separate function
authorRick Macklem <rmacklem@FreeBSD.org>
Thu, 1 Apr 2021 22:36:37 +0000 (15:36 -0700)
committerRick Macklem <rmacklem@FreeBSD.org>
Thu, 1 Apr 2021 22:36:37 +0000 (15:36 -0700)
commit4e6c2a1ee9af05bf42187e8201af1d03a617834f
treeb283f69bbb81b661d3c9ecddeae192bad0363922
parentb43fe9eb4b3365156016ae3477747a46fc094bb8
nfsv4 client: factor loop contents out into a separate function

Commit fdc9b2d50fe9 replaced a couple of while loops with LIST_FOREACH()
loops.  This patch factors the body of that loop out into a separate
function called nfscl_checkown().
This 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