summaryrefslogtreecommitdiff
path: root/include/trace
diff options
context:
space:
mode:
authorWu Fengguang <fengguang.wu@intel.com>2012-01-17 11:18:56 -0600
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-02-20 12:46:16 -0800
commitaec14f459cc9d40f9fd4a7aad2be761de084b320 (patch)
treeb323d2ccc93eb02b52b54c9261e9fa7a0bf769ee /include/trace
parent60d08dde8e209a4e5b6ff95022004c65672c149f (diff)
downloadlwn-aec14f459cc9d40f9fd4a7aad2be761de084b320.tar.gz
lwn-aec14f459cc9d40f9fd4a7aad2be761de084b320.zip
writeback: fix NULL bdi->dev in trace writeback_single_inode
commit 15eb77a07c714ac80201abd0a9568888bcee6276 upstream. 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. Reported-by: Rabin Vincent <rabin@rab.in> Tested-by: Rabin Vincent <rabin@rab.in> Signed-off-by: Wu Fengguang <fengguang.wu@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/trace')
-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 99d1d0decf88..46e389cf3063 100644
--- a/include/trace/events/writeback.h
+++ b/include/trace/events/writeback.h
@@ -418,7 +418,7 @@ DECLARE_EVENT_CLASS(writeback_single_inode_template,
TP_fast_assign(
strncpy(__entry->name,
- dev_name(inode->i_mapping->backing_dev_info->dev), 32);
+ dev_name(inode_to_bdi(inode)->dev), 32);
__entry->ino = inode->i_ino;
__entry->state = inode->i_state;
__entry->dirtied_when = inode->dirtied_when;