]> Git Repo - linux.git/commit
mm/list_lru.c: pass struct list_lru_node* as an argument to __list_lru_walk_one()
authorSebastian Andrzej Siewior <[email protected]>
Fri, 17 Aug 2018 22:49:51 +0000 (15:49 -0700)
committerLinus Torvalds <[email protected]>
Fri, 17 Aug 2018 23:20:32 +0000 (16:20 -0700)
commit6e018968f8d384d84484eba8e4c90489a25d7095
tree41dcb86fb5b712b48b6e2a7e7dedcdb2d3e157e0
parent6cfe57a96ba33139c57056185d5eee9018e3dedc
mm/list_lru.c: pass struct list_lru_node* as an argument to __list_lru_walk_one()

__list_lru_walk_one() is invoked with struct list_lru *lru, int nid as
the first two argument.  Those two are only used to retrieve struct
list_lru_node.  Since this is already done by the caller of the function
for the locking, we can pass struct list_lru_node* directly and avoid
the dance around it.

Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Sebastian Andrzej Siewior <[email protected]>
Reviewed-by: Vladimir Davydov <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
mm/list_lru.c
This page took 0.053751 seconds and 4 git commands to generate.