diff options
author | NeilBrown <neilb@suse.com> | 2017-10-23 11:53:49 +1100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-11-03 15:00:34 +0100 |
commit | 3ac5a675caf4dde2788a7a1ac32b95986bffe901 (patch) | |
tree | 24af0d4ea5f7ef0a1592e2ccaebdedbcdefa3ffa /tools/perf/scripts/python/stackcollapse.py | |
parent | 60751d49e0a7fe93b8467bd8c50101cc9367c605 (diff) |
staging: lustre: ldlm: tidy list walking in ldlm_flock()
Use list_for_each_entry variants to
avoid the explicit list_entry() calls.
This allows us to use list_for_each_entry_safe_from()
instread of adding a local list-walking macro.
Also improve some comments so that it is more obvious
that the locks are sorted per-owner and that we need
to find the insertion point.
Signed-off-by: NeilBrown <neilb@suse.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions