aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/event_analyzing_sample.py
diff options
context:
space:
mode:
authorNeilBrown <[email protected]>2018-02-20 13:23:38 +1100
committerGreg Kroah-Hartman <[email protected]>2018-02-22 15:06:36 +0100
commit8ede253133d45d510dacfde86ba836fd301e8c06 (patch)
treed511527948454c8b3bbd54ef93f916bd4aa937e0 /tools/perf/scripts/python/event_analyzing_sample.py
parent40f5bd35015501c2964cb3450b52273c1ae36ba2 (diff)
staging: lustre: fid: remove seq_fid_alloc_fini() and simplify
seq_fid_alloc_fini() is tiny and only called from two places in the one function. We can move both those calls earlier and merge them so only one call is needed. At that point, there is no value added by having a separate function. Also instead of using ++ and -- on ->lcs_update to toggle between 0 and 1, explicitly set to 0 or 1 as appropriate. Moving the locking earlier means that the code which updates seq->lcs_fid is now protected, so ldebugfs_fid_fid_seq_show() now cannot see a torn value. Signed-off-by: NeilBrown <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions