Skip to content

Commit e0feed0

Browse files
urezkipaulmckrcu
authored andcommitted
mm/list_lru.c: Rename kvfree_rcu() to local variant
Rename kvfree_rcu() function to the kvfree_rcu_local() one. The purpose is to prevent a conflict of two same function declarations. The kvfree_rcu() will be globally visible what would lead to a build error. No functional change. Cc: [email protected] Cc: [email protected] Cc: Andrew Morton <[email protected]> Signed-off-by: Uladzislau Rezki (Sony) <[email protected]> Reviewed-by: Joel Fernandes (Google) <[email protected]> Signed-off-by: Joel Fernandes (Google) <[email protected]> Signed-off-by: Paul E. McKenney <[email protected]>
1 parent c408b21 commit e0feed0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

mm/list_lru.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -373,14 +373,14 @@ static void memcg_destroy_list_lru_node(struct list_lru_node *nlru)
373373
struct list_lru_memcg *memcg_lrus;
374374
/*
375375
* This is called when shrinker has already been unregistered,
376-
* and nobody can use it. So, there is no need to use kvfree_rcu().
376+
* and nobody can use it. So, there is no need to use kvfree_rcu_local().
377377
*/
378378
memcg_lrus = rcu_dereference_protected(nlru->memcg_lrus, true);
379379
__memcg_destroy_list_lru_node(memcg_lrus, 0, memcg_nr_cache_ids);
380380
kvfree(memcg_lrus);
381381
}
382382

383-
static void kvfree_rcu(struct rcu_head *head)
383+
static void kvfree_rcu_local(struct rcu_head *head)
384384
{
385385
struct list_lru_memcg *mlru;
386386

@@ -419,7 +419,7 @@ static int memcg_update_list_lru_node(struct list_lru_node *nlru,
419419
rcu_assign_pointer(nlru->memcg_lrus, new);
420420
spin_unlock_irq(&nlru->lock);
421421

422-
call_rcu(&old->rcu, kvfree_rcu);
422+
call_rcu(&old->rcu, kvfree_rcu_local);
423423
return 0;
424424
}
425425

0 commit comments

Comments
 (0)