]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
nfscl: Restructure nfscl_freeopen() slightly
authorRick Macklem <rmacklem@FreeBSD.org>
Fri, 15 Oct 2021 00:28:01 +0000 (17:28 -0700)
committerRick Macklem <rmacklem@FreeBSD.org>
Fri, 15 Oct 2021 00:28:01 +0000 (17:28 -0700)
commit6495766acfb242048a80d58956b2cebbd885d8cc
tree736d605f618940d3279706230af5a1612367e087
parenta72ee355646c4a379f55ac32d7d8dfe6c0d366f9
nfscl: Restructure nfscl_freeopen() slightly

This patch factors the unlinking of the nfsclopen structure out of
nfscl_freeopen() into a separate function called nfscl_unlinkopen().
It also adds a new argument to nfscl_freeopen() to conditionally do
the unlink.  Since this new argument is always passed in as "true"
at this time, no semantics change should occur.

This is being done to prepare the code for a future patch that fixes
the case where an NFSv4.1/4.2 server replies NFSERR_DELAY to a Close
operation.

MFC after: 2 week
sys/fs/nfs/nfs_var.h
sys/fs/nfsclient/nfs_clrpcops.c
sys/fs/nfsclient/nfs_clstate.c