]> asedeno.scripts.mit.edu Git - linux.git/commit
staging: lustre: use list_last_entry to simplify fld_cache_shrink
authorNeilBrown <neilb@suse.com>
Wed, 13 Dec 2017 03:15:54 +0000 (14:15 +1100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 13 Dec 2017 11:32:12 +0000 (12:32 +0100)
commit7d5ea743bc1d9550d04a09b351504c36d24e5b4c
tree93a9ea0e1aafbde046afb94827f0e639186b08bb
parent93d3ad90c2d470804b16f79e7e872408747d3e77
staging: lustre: use list_last_entry to simplify fld_cache_shrink

Using list_empty() and list_last_entry() makes the code clearer,
and allows a local variable to be discarded.

Signed-off-by: NeilBrown <neilb@suse.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/fld/fld_cache.c