diff options
author | Alexander Aring <aahringo@redhat.com> | 2022-06-22 14:45:11 -0400 |
---|---|---|
committer | David Teigland <teigland@redhat.com> | 2022-06-24 11:53:08 -0500 |
commit | 0c4c516fa206d6e8a3986eebd3016a96022792c6 (patch) | |
tree | acdc8ec0e0d1ffd89026476f60d19dd52c1d176e /fs/dlm | |
parent | cd1e8ca9f3a4c7e3e1f22341a71e013797b3a0f0 (diff) | |
download | linux-stable-0c4c516fa206d6e8a3986eebd3016a96022792c6.tar.gz linux-stable-0c4c516fa206d6e8a3986eebd3016a96022792c6.tar.bz2 linux-stable-0c4c516fa206d6e8a3986eebd3016a96022792c6.zip |
fs: dlm: remove additional dereference of lksb
This patch removes a dereference of lksb of lkb when calling ast
tracepoint. First it reduces additional overhead, even if traces
are not active. Second we can deference it in TP_fast_assign from
the existing lkb parameter.
Signed-off-by: Alexander Aring <aahringo@redhat.com>
Signed-off-by: David Teigland <teigland@redhat.com>
Diffstat (limited to 'fs/dlm')
-rw-r--r-- | fs/dlm/ast.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/dlm/ast.c b/fs/dlm/ast.c index df25c3e785cf..19ef136f9e4f 100644 --- a/fs/dlm/ast.c +++ b/fs/dlm/ast.c @@ -260,7 +260,7 @@ void dlm_callback_work(struct work_struct *work) } else if (callbacks[i].flags & DLM_CB_CAST) { lkb->lkb_lksb->sb_status = callbacks[i].sb_status; lkb->lkb_lksb->sb_flags = callbacks[i].sb_flags; - trace_dlm_ast(ls, lkb, lkb->lkb_lksb); + trace_dlm_ast(ls, lkb); castfn(lkb->lkb_astparam); } } |