diff options
author | Dave Chinner <dchinner@redhat.com> | 2010-07-06 23:24:08 -0400 |
---|---|---|
committer | Jens Axboe <jaxboe@fusionio.com> | 2010-08-07 12:24:26 -0400 |
commit | 9e094383b60066996fbc3b53891324e5d2ec858d (patch) | |
tree | a3f4af7e60781f62b52dcfddd2032c3bbf933644 /include/trace | |
parent | 028c2dd184c097809986684f2f0627eea5529fea (diff) |
writeback: Add tracing to write_cache_pages
Add a trace event to the ->writepage loop in write_cache_pages to give
visibility into how the ->writepage call is changing variables within the
writeback control structure. Of most interest is how wbc->nr_to_write changes
from call to call, especially with filesystems that write multiple pages
in ->writepage.
Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
Diffstat (limited to 'include/trace')
-rw-r--r-- | include/trace/events/writeback.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/trace/events/writeback.h b/include/trace/events/writeback.h index 0be26acae064..bde92e07fa4f 100644 --- a/include/trace/events/writeback.h +++ b/include/trace/events/writeback.h | |||
@@ -148,6 +148,7 @@ DEFINE_WBC_EVENT(wbc_writeback_wait); | |||
148 | DEFINE_WBC_EVENT(wbc_balance_dirty_start); | 148 | DEFINE_WBC_EVENT(wbc_balance_dirty_start); |
149 | DEFINE_WBC_EVENT(wbc_balance_dirty_written); | 149 | DEFINE_WBC_EVENT(wbc_balance_dirty_written); |
150 | DEFINE_WBC_EVENT(wbc_balance_dirty_wait); | 150 | DEFINE_WBC_EVENT(wbc_balance_dirty_wait); |
151 | DEFINE_WBC_EVENT(wbc_writepage); | ||
151 | 152 | ||
152 | #endif /* _TRACE_WRITEBACK_H */ | 153 | #endif /* _TRACE_WRITEBACK_H */ |
153 | 154 | ||