OSDN Git Service

staging: lustre: osc: use rb_entry_safe
authorGeliang Tang <geliangtang@gmail.com>
Tue, 20 Dec 2016 13:56:55 +0000 (21:56 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 3 Jan 2017 14:14:23 +0000 (15:14 +0100)
commite3e0293ca9b948e83948f0514796370c9cc49a09
tree8ada89517ae49ed3fb80b5f3a4d7ea03ea68c036
parent69eb1a0dbfde3132022a063492ddd0f162b650a7
staging: lustre: osc: use rb_entry_safe

Use rb_entry_safe() instead of container_of() to simplify the code.

Signed-off-by: Geliang Tang <geliangtang@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/osc/osc_cache.c