@@ -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}
@@ -522,7 +522,7 @@ static void afs_cell_destroy(struct rcu_head *rcu)
522522 trace_afs_cell (cell -> debug_id , r , atomic_read (& cell -> active ), afs_cell_trace_free );
523523
524524 afs_put_vlserverlist (net , rcu_access_pointer (cell -> vl_servers ));
525- afs_unuse_cell (net , cell -> alias_of , afs_cell_trace_unuse_alias );
525+ afs_unuse_cell (cell -> alias_of , afs_cell_trace_unuse_alias );
526526 key_put (cell -> anonymous_key );
527527 idr_remove (& net -> cells_dyn_ino , cell -> dynroot_ino );
528528 kfree (cell -> name - 1 );
@@ -610,7 +610,7 @@ struct afs_cell *afs_use_cell(struct afs_cell *cell, enum afs_cell_trace reason)
610610 * Record a cell becoming less active. When the active counter reaches 1, it
611611 * is scheduled for destruction, but may get reactivated.
612612 */
613- void afs_unuse_cell (struct afs_net * net , struct afs_cell * cell , enum afs_cell_trace reason )
613+ void afs_unuse_cell (struct afs_cell * cell , enum afs_cell_trace reason )
614614{
615615 unsigned int debug_id ;
616616 time64_t now , expire_delay ;
@@ -634,7 +634,7 @@ void afs_unuse_cell(struct afs_net *net, struct afs_cell *cell, enum afs_cell_tr
634634 WARN_ON (a == 0 );
635635 if (a == 1 )
636636 /* 'cell' may now be garbage collected. */
637- afs_set_cell_timer (net , expire_delay );
637+ afs_set_cell_timer (cell -> net , expire_delay );
638638}
639639
640640/*
@@ -959,7 +959,7 @@ void afs_cell_purge(struct afs_net *net)
959959 ws = rcu_replace_pointer (net -> ws_cell , NULL ,
960960 lockdep_is_held (& net -> cells_lock ));
961961 up_write (& net -> cells_lock );
962- afs_unuse_cell (net , ws , afs_cell_trace_unuse_ws );
962+ afs_unuse_cell (ws , afs_cell_trace_unuse_ws );
963963
964964 _debug ("del timer" );
965965 if (del_timer_sync (& net -> cells_timer ))
0 commit comments