gfs2: Clean up gfs2_scan_glock_lru
authorAndreas Gruenbacher <agruenba@redhat.com>
Sat, 10 Dec 2022 01:14:04 +0000 (02:14 +0100)
committerAndreas Gruenbacher <agruenba@redhat.com>
Tue, 31 Jan 2023 21:40:24 +0000 (22:40 +0100)
commit8fb8f70ec71eb5ca51ecbfc2303523ff836648db
tree16f7c5fc276f5354328ed5d8bf9d1e74a283a883
parent2d1439557ffeab3b9729f1c64fa86830070f9a04
gfs2: Clean up gfs2_scan_glock_lru

Switch to list_for_each_entry_safe() and eliminate the "skipped" list in
gfs2_scan_glock_lru().

At the same time, scan the requested number of items to scan, not one
more than that number.

Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
fs/gfs2/glock.c