aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorWu Fengguang <fengguang.wu@intel.com>2012-01-17 12:18:56 -0500
committerWu Fengguang <fengguang.wu@intel.com>2012-02-01 03:53:40 -0500
commit15eb77a07c714ac80201abd0a9568888bcee6276 (patch)
treecc43dc8458cb431900fd47990772ffa56b36b4f4 /include
parent2673b4cf5d59c3ee5e0c12f6d734d38770324dc4 (diff)
writeback: fix NULL bdi->dev in trace writeback_single_inode
bdi_prune_sb() resets sb->s_bdi to default_backing_dev_info when the tearing down the original bdi. Fix trace_writeback_single_inode to use sb->s_bdi=default_backing_dev_info rather than bdi->dev=NULL for a teared down bdi. Cc: <stable@kernel.org> Reported-by: Rabin Vincent <rabin@rab.in> Tested-by: Rabin Vincent <rabin@rab.in> Signed-off-by: Wu Fengguang <fengguang.wu@intel.com>
Diffstat (limited to 'include')
-rw-r--r--include/trace/events/writeback.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/trace/events/writeback.h b/include/trace/events/writeback.h
index 8588a8918023..06d302ebcb72 100644
--- a/include/trace/events/writeback.h
+++ b/include/trace/events/writeback.h
@@ -426,7 +426,7 @@ DECLARE_EVENT_CLASS(writeback_single_inode_template,
426 426
427 TP_fast_assign( 427 TP_fast_assign(
428 strncpy(__entry->name, 428 strncpy(__entry->name,
429 dev_name(inode->i_mapping->backing_dev_info->dev), 32); 429 dev_name(inode_to_bdi(inode)->dev), 32);
430 __entry->ino = inode->i_ino; 430 __entry->ino = inode->i_ino;
431 __entry->state = inode->i_state; 431 __entry->state = inode->i_state;
432 __entry->dirtied_when = inode->dirtied_when; 432 __entry->dirtied_when = inode->dirtied_when;