1
0
Fork 0
alistair23-linux/drivers/staging/lustre/lustre/ldlm
Bhumika Goyal 8f5b1435a1 Staging: lustre: Use list_{next/prev}_entry instead of list_entry
This patch replace list_entry with list_{next/prev}_entry as it makes
the code more clear to read.
Done using coccinelle:

@@
expression e1;
identifier e3;
type t;
@@
(
- list_entry(e1->e3.next,t,e3)
+ list_next_entry(e1,e3)
|
- list_entry(e1->e3.prev,t,e3)
+ list_prev_entry(e1,e3)
)

Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2016-03-11 22:09:09 -08:00
..
interval_tree.c staging/lustre/ldlm: Adjust comments to better conform to coding style 2016-02-25 22:08:59 -08:00
l_lock.c staging/lustre: Remove ns_is_server() 2015-10-02 11:17:19 +02:00
ldlm_extent.c staging: lustre: ldlm: Replace kmem_cache_alloc with kmem_cache_zalloc 2016-03-01 19:18:42 -08:00
ldlm_flock.c staging/lustre/ldlm: Adjust comments to better conform to coding style 2016-02-25 22:08:59 -08:00
ldlm_inodebits.c staging: lustre: remove multiple blank lines 2015-10-13 10:21:10 -07:00
ldlm_internal.h staging/lustre/ldlm: Adjust comments to better conform to coding style 2016-02-25 22:08:59 -08:00
ldlm_lib.c staging/lustre/ldlm: Adjust comments to better conform to coding style 2016-02-25 22:08:59 -08:00
ldlm_lock.c Staging: lustre: Use list_{next/prev}_entry instead of list_entry 2016-03-11 22:09:09 -08:00
ldlm_lockd.c staging/lustre/ldlm: Adjust comments to better conform to coding style 2016-02-25 22:08:59 -08:00
ldlm_plain.c staging: lustre: remove multiple blank lines 2015-10-13 10:21:10 -07:00
ldlm_pool.c staging/lustre/ldlm: Adjust NULL comparison codestyle 2016-02-20 14:33:11 -08:00
ldlm_request.c staging: lustre: Correct missing newline 2016-03-07 16:17:45 -08:00
ldlm_resource.c staging: lustre: ldlm: Replace kmem_cache_alloc with kmem_cache_zalloc 2016-03-01 19:18:42 -08:00