gfs2: Fix debugfs glocks dump
authorAndreas Gruenbacher <agruenba@redhat.com>
Tue, 19 Sep 2017 12:15:35 +0000 (07:15 -0500)
committerBob Peterson <rpeterso@redhat.com>
Mon, 25 Sep 2017 17:32:33 +0000 (12:32 -0500)
commit10201655b085df8e000822e496e5d4016a167a36
treeddcd2abb5f0f1e868940de711e10b2682c1452e3
parent46c1e79fee417f151547aa46fae04ab06cb666f4
gfs2: Fix debugfs glocks dump

The switch to rhashtables (commit 88ffbf3e03) broke the debugfs glock
dump (/sys/kernel/debug/gfs2/<device>/glocks) for dumps bigger than a
single buffer: the right function for restarting an rhashtable iteration
from the beginning of the hash table is rhashtable_walk_enter;
rhashtable_walk_stop + rhashtable_walk_start will just resume from the
current position.

Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Signed-off-by: Bob Peterson <rpeterso@redhat.com>
Cc: stable@vger.kernel.org # v4.3+
fs/gfs2/glock.c