summaryrefslogtreecommitdiff
path: root/tools/lib/python/kdoc/python_version.py
diff options
context:
space:
mode:
authorNeilBrown <neil@brown.name>2025-09-08 11:38:33 +1000
committerChuck Lever <chuck.lever@oracle.com>2025-11-16 18:20:11 -0500
commit4552f4e3f2c96597914f07b060d5c5db84420ddd (patch)
tree3312acfa3da3db87451a9c8ede90145191e0abe4 /tools/lib/python/kdoc/python_version.py
parent89bd77cf436bf25e448817a662ebf76515f22863 (diff)
nfsd: change nfs4_client_to_reclaim() to allocate data
The calling convention for nfs4_client_to_reclaim() is clumsy in that the caller needs to free memory if the function fails. It is much cleaner if the function frees its own memory. This patch changes nfs4_client_to_reclaim() to re-allocate the .data fields to be stored in the newly allocated struct nfs4_client_reclaim, and to free everything on failure. __cld_pipe_inprogress_downcall() needs to allocate the data anyway to copy it from user-space, so now that data is allocated twice. I think that is a small price to pay for a cleaner interface. Signed-off-by: NeilBrown <neil@brown.name> Reviewed-by: Jeff Layton <jlayton@kernel.org> Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Diffstat (limited to 'tools/lib/python/kdoc/python_version.py')
0 files changed, 0 insertions, 0 deletions