aboutsummaryrefslogtreecommitdiff
path: root/include/trace
diff options
context:
space:
mode:
authorCurt Wohlgemuth <curtw@google.com>2011-10-07 21:51:56 -0600
committerWu Fengguang <fengguang.wu@intel.com>2011-10-31 00:33:27 +0800
commitad4e38dd6a33bb3a4882c487d7abe621e583b982 (patch)
tree5b78b8929ade5372b2e24d4c1793f8cb39962146 /include/trace
parentece13ac31bbe492d940ba0bc4ade2ae1521f46a5 (diff)
downloadlinux-linaro-stable-ad4e38dd6a33bb3a4882c487d7abe621e583b982.tar.gz
writeback: send work item to queue_io, move_expired_inodes
Instead of sending ->older_than_this to queue_io() and move_expired_inodes(), send the entire wb_writeback_work structure. There are other fields of a work item that are useful in these routines and in tracepoints. Acked-by: Jan Kara <jack@suse.cz> Signed-off-by: Curt Wohlgemuth <curtw@google.com> Signed-off-by: Wu Fengguang <fengguang.wu@intel.com>
Diffstat (limited to 'include/trace')
-rw-r--r--include/trace/events/writeback.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/trace/events/writeback.h b/include/trace/events/writeback.h
index 0ce9f06f58c2..1261db3916cc 100644
--- a/include/trace/events/writeback.h
+++ b/include/trace/events/writeback.h
@@ -157,9 +157,9 @@ DEFINE_WBC_EVENT(wbc_writepage);
TRACE_EVENT(writeback_queue_io,
TP_PROTO(struct bdi_writeback *wb,
- unsigned long *older_than_this,
+ struct wb_writeback_work *work,
int moved),
- TP_ARGS(wb, older_than_this, moved),
+ TP_ARGS(wb, work, moved),
TP_STRUCT__entry(
__array(char, name, 32)
__field(unsigned long, older)
@@ -167,6 +167,7 @@ TRACE_EVENT(writeback_queue_io,
__field(int, moved)
),
TP_fast_assign(
+ unsigned long *older_than_this = work->older_than_this;
strncpy(__entry->name, dev_name(wb->bdi->dev), 32);
__entry->older = older_than_this ? *older_than_this : 0;
__entry->age = older_than_this ?