Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 367271
b: refs/heads/master
c: 7bd8b2e
h: refs/heads/master
i:
  367269: d13a98d
  367267: ba9488f
  367263: f5af304
v: v3
  • Loading branch information
Steven Whitehouse committed Apr 10, 2013
1 parent 06f29e3 commit bc741b5
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 81ffbf654f0cfeeb44e69832b3d301958a4108d8
refs/heads/master: 7bd8b2eb32c404ebe61986083ce02642b6ff3bf6
2 changes: 1 addition & 1 deletion trunk/fs/gfs2/glock.c
Original file line number Diff line number Diff line change
Expand Up @@ -926,7 +926,7 @@ static void handle_callback(struct gfs2_glock *gl, unsigned int state,
}
if (gl->gl_ops->go_callback)
gl->gl_ops->go_callback(gl, remote);
trace_gfs2_demote_rq(gl);
trace_gfs2_demote_rq(gl, remote);
}

void gfs2_print_dbg(struct seq_file *seq, const char *fmt, ...)
Expand Down
11 changes: 7 additions & 4 deletions trunk/fs/gfs2/trace_gfs2.h
Original file line number Diff line number Diff line change
Expand Up @@ -159,9 +159,9 @@ TRACE_EVENT(gfs2_glock_put,
/* Callback (local or remote) requesting lock demotion */
TRACE_EVENT(gfs2_demote_rq,

TP_PROTO(const struct gfs2_glock *gl),
TP_PROTO(const struct gfs2_glock *gl, bool remote),

TP_ARGS(gl),
TP_ARGS(gl, remote),

TP_STRUCT__entry(
__field( dev_t, dev )
Expand All @@ -170,6 +170,7 @@ TRACE_EVENT(gfs2_demote_rq,
__field( u8, cur_state )
__field( u8, dmt_state )
__field( unsigned long, flags )
__field( bool, remote )
),

TP_fast_assign(
Expand All @@ -179,14 +180,16 @@ TRACE_EVENT(gfs2_demote_rq,
__entry->cur_state = glock_trace_state(gl->gl_state);
__entry->dmt_state = glock_trace_state(gl->gl_demote_state);
__entry->flags = gl->gl_flags | (gl->gl_object ? (1UL<<GLF_OBJECT) : 0);
__entry->remote = remote;
),

TP_printk("%u,%u glock %d:%lld demote %s to %s flags:%s",
TP_printk("%u,%u glock %d:%lld demote %s to %s flags:%s %s",
MAJOR(__entry->dev), MINOR(__entry->dev), __entry->gltype,
(unsigned long long)__entry->glnum,
glock_trace_name(__entry->cur_state),
glock_trace_name(__entry->dmt_state),
show_glock_flags(__entry->flags))
show_glock_flags(__entry->flags),
__entry->remote ? "remote" : "local")

);

Expand Down

0 comments on commit bc741b5

Please sign in to comment.