@@ -146,7 +146,7 @@ nfs4_make_rec_clidname(char *dname, const struct xdr_netobj *clname)
146
146
* then disable recovery tracking.
147
147
*/
148
148
static void
149
- legacy_recdir_name_error (int error )
149
+ legacy_recdir_name_error (struct nfs4_client * clp , int error )
150
150
{
151
151
printk (KERN_ERR "NFSD: unable to generate recoverydir "
152
152
"name (%d).\n" , error );
@@ -159,9 +159,7 @@ legacy_recdir_name_error(int error)
159
159
if (error == - ENOENT ) {
160
160
printk (KERN_ERR "NFSD: disabling legacy clientid tracking. "
161
161
"Reboot recovery will not function correctly!\n" );
162
-
163
- /* the argument is ignored by the legacy exit function */
164
- nfsd4_client_tracking_exit (NULL );
162
+ nfsd4_client_tracking_exit (clp -> net );
165
163
}
166
164
}
167
165
@@ -184,7 +182,7 @@ nfsd4_create_clid_dir(struct nfs4_client *clp)
184
182
185
183
status = nfs4_make_rec_clidname (dname , & clp -> cl_name );
186
184
if (status )
187
- return legacy_recdir_name_error (status );
185
+ return legacy_recdir_name_error (clp , status );
188
186
189
187
status = nfs4_save_creds (& original_cred );
190
188
if (status < 0 )
@@ -341,7 +339,7 @@ nfsd4_remove_clid_dir(struct nfs4_client *clp)
341
339
342
340
status = nfs4_make_rec_clidname (dname , & clp -> cl_name );
343
341
if (status )
344
- return legacy_recdir_name_error (status );
342
+ return legacy_recdir_name_error (clp , status );
345
343
346
344
status = mnt_want_write_file (nn -> rec_file );
347
345
if (status )
@@ -601,7 +599,7 @@ nfsd4_check_legacy_client(struct nfs4_client *clp)
601
599
602
600
status = nfs4_make_rec_clidname (dname , & clp -> cl_name );
603
601
if (status ) {
604
- legacy_recdir_name_error (status );
602
+ legacy_recdir_name_error (clp , status );
605
603
return status ;
606
604
}
607
605
0 commit comments