aboutsummaryrefslogtreecommitdiffstats
path: root/include/trace
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2015-01-14 04:42:41 -0500
committerJens Axboe <axboe@fb.com>2015-01-20 16:05:38 -0500
commitdf0ce26cb4ee8bc233d50213b97213532aff0a3c (patch)
treebfc9ae26255daa5bd5d633520151223551faf016 /include/trace
parentc4db59d31e39ea067c32163ac961e9c80198fd37 (diff)
fs: remove default_backing_dev_info
Now that default_backing_dev_info is not used for writeback purposes we can git rid of it easily: - instead of using it's name for tracing unregistered bdi we just use "unknown" - btrfs and ceph can just assign the default read ahead window themselves like several other filesystems already do. - we can assign noop_backing_dev_info as the default one in alloc_super. All filesystems already either assigned their own or noop_backing_dev_info. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Tejun Heo <tj@kernel.org> Reviewed-by: Jan Kara <jack@suse.cz> Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'include/trace')
-rw-r--r--include/trace/events/writeback.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/include/trace/events/writeback.h b/include/trace/events/writeback.h
index 74f5207bd090..0e9310905413 100644
--- a/include/trace/events/writeback.h
+++ b/include/trace/events/writeback.h
@@ -156,10 +156,8 @@ DECLARE_EVENT_CLASS(writeback_work_class,
156 __field(int, reason) 156 __field(int, reason)
157 ), 157 ),
158 TP_fast_assign( 158 TP_fast_assign(
159 struct device *dev = bdi->dev; 159 strncpy(__entry->name,
160 if (!dev) 160 bdi->dev ? dev_name(bdi->dev) : "(unknown)", 32);
161 dev = default_backing_dev_info.dev;
162 strncpy(__entry->name, dev_name(dev), 32);
163 __entry->nr_pages = work->nr_pages; 161 __entry->nr_pages = work->nr_pages;
164 __entry->sb_dev = work->sb ? work->sb->s_dev : 0; 162 __entry->sb_dev = work->sb ? work->sb->s_dev : 0;
165 __entry->sync_mode = work->sync_mode; 163 __entry->sync_mode = work->sync_mode;