Whamcloud - gitweb
LU-12511 fld: use list_last_entry in fld_cache_shrink 39/37739/2
authorMr NeilBrown <neilb@suse.de>
Thu, 27 Feb 2020 02:47:38 +0000 (13:47 +1100)
committerOleg Drokin <green@whamcloud.com>
Tue, 24 Mar 2020 05:16:01 +0000 (05:16 +0000)
commit8c207f38fb1e4104c22912d0e1344cd8be8ce6aa
treea8360466def1b8c69a3bcf2cdee46c9335b769a7
parentbb0e7e7d04a7319f56092d2412a5c8b88467541d
LU-12511 fld: use list_last_entry in fld_cache_shrink

fld_cache_shrink can be substantially simplified by using
list_last_entry().

Test-Parameters: trivial
Signed-off-by: Mr NeilBrown <neilb@suse.de>
Change-Id: I0dcbd8ffefbd113786f422b7662298605020687d
Reviewed-on: https://review.whamcloud.com/37739
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/fld/fld_cache.c