dlm: fix seq_file usage in debugfs lock dump

The old code would leak iterators and leave reference counts on
rsbs because it was ignoring the "stop" seq callback.  The code
followed an example that used the seq operations differently.
This new code is based on actually understanding how the seq
operations work.  It also improves things by saving the hash bucket
in the position to avoid cycling through completed buckets in start.

Siged-off-by: Davd Teigland <teigland@redhat.com>
This commit is contained in:
David Teigland
2009-01-07 16:48:52 -06:00
parent 238c6d5483
commit 892c4467e3
+361 -383
View File
File diff suppressed because it is too large Load Diff