Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 287461
b: refs/heads/master
c: 977b7e3
h: refs/heads/master
i:
  287459: b39e6be
v: v3
  • Loading branch information
Wu Fengguang committed Feb 6, 2012
1 parent 144f170 commit e20cdd8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 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: 3310225dfc71a35a2cc9340c15c0e08b14b3c754
refs/heads/master: 977b7e3a52a7421ad33a393a38ece59f3d41c2fa
5 changes: 4 additions & 1 deletion trunk/include/trace/events/writeback.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,10 @@ DECLARE_EVENT_CLASS(writeback_work_class,
__field(int, reason)
),
TP_fast_assign(
strncpy(__entry->name, dev_name(bdi->dev), 32);
struct device *dev = bdi->dev;
if (!dev)
dev = default_backing_dev_info.dev;
strncpy(__entry->name, dev_name(dev), 32);
__entry->nr_pages = work->nr_pages;
__entry->sb_dev = work->sb ? work->sb->s_dev : 0;
__entry->sync_mode = work->sync_mode;
Expand Down

0 comments on commit e20cdd8

Please sign in to comment.