@@ -339,7 +339,7 @@ struct afs_cell *afs_lookup_cell(struct afs_net *net,
339339 goto wait_for_cell ;
340340 goto error_noput ;
341341error :
342- afs_unuse_cell (net , cell , afs_cell_trace_unuse_lookup );
342+ afs_unuse_cell (cell , afs_cell_trace_unuse_lookup_error );
343343error_noput :
344344 _leave (" = %d [error]" , ret );
345345 return ERR_PTR (ret );
@@ -402,7 +402,7 @@ int afs_cell_init(struct afs_net *net, const char *rootcell)
402402 lockdep_is_held (& net -> cells_lock ));
403403 up_write (& net -> cells_lock );
404404
405- afs_unuse_cell (net , old_root , afs_cell_trace_unuse_ws );
405+ afs_unuse_cell (old_root , afs_cell_trace_unuse_ws );
406406 _leave (" = 0" );
407407 return 0 ;
408408}
@@ -520,7 +520,7 @@ static void afs_cell_destroy(struct rcu_head *rcu)
520520 trace_afs_cell (cell -> debug_id , r , atomic_read (& cell -> active ), afs_cell_trace_free );
521521
522522 afs_put_vlserverlist (net , rcu_access_pointer (cell -> vl_servers ));
523- afs_unuse_cell (net , cell -> alias_of , afs_cell_trace_unuse_alias );
523+ afs_unuse_cell (cell -> alias_of , afs_cell_trace_unuse_alias );
524524 key_put (cell -> anonymous_key );
525525 idr_remove (& net -> cells_dyn_ino , cell -> dynroot_ino );
526526 kfree (cell -> name - 1 );
@@ -608,7 +608,7 @@ struct afs_cell *afs_use_cell(struct afs_cell *cell, enum afs_cell_trace reason)
608608 * Record a cell becoming less active. When the active counter reaches 1, it
609609 * is scheduled for destruction, but may get reactivated.
610610 */
611- void afs_unuse_cell (struct afs_net * net , struct afs_cell * cell , enum afs_cell_trace reason )
611+ void afs_unuse_cell (struct afs_cell * cell , enum afs_cell_trace reason )
612612{
613613 unsigned int debug_id ;
614614 time64_t now , expire_delay ;
@@ -632,7 +632,7 @@ void afs_unuse_cell(struct afs_net *net, struct afs_cell *cell, enum afs_cell_tr
632632 WARN_ON (a == 0 );
633633 if (a == 1 )
634634 /* 'cell' may now be garbage collected. */
635- afs_set_cell_timer (net , expire_delay );
635+ afs_set_cell_timer (cell -> net , expire_delay );
636636}
637637
638638/*
@@ -957,7 +957,7 @@ void afs_cell_purge(struct afs_net *net)
957957 ws = rcu_replace_pointer (net -> ws_cell , NULL ,
958958 lockdep_is_held (& net -> cells_lock ));
959959 up_write (& net -> cells_lock );
960- afs_unuse_cell (net , ws , afs_cell_trace_unuse_ws );
960+ afs_unuse_cell (ws , afs_cell_trace_unuse_ws );
961961
962962 _debug ("del timer" );
963963 if (del_timer_sync (& net -> cells_timer ))
0 commit comments