diff options
author | Li RongQing <roy.qing.li@gmail.com> | 2015-04-22 17:09:54 +0800 |
---|---|---|
committer | Steffen Klassert <steffen.klassert@secunet.com> | 2015-04-23 11:36:06 +0200 |
commit | 800777026eeb33585f29608c2c6131fc66d2e218 (patch) | |
tree | 23aca36cb198fa486dbb67e7ee28191e1f597db3 /mm/vmalloc.c | |
parent | 1ee5e6676bccbf7a035d8d35c143f1a61e602198 (diff) |
xfrm: optimise the use of walk list header in xfrm_policy/state_walk
The walk from input is the list header, and marked as dead, and will
be skipped in loop.
list_first_entry() can be used to return the true usable value from
walk if walk is not empty
Signed-off-by: Li RongQing <roy.qing.li@gmail.com>
Acked-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Diffstat (limited to 'mm/vmalloc.c')
0 files changed, 0 insertions, 0 deletions