aboutsummaryrefslogtreecommitdiffstats
path: root/include/trace
diff options
context:
space:
mode:
authorZheng Liu <wenqing.lz@taobao.com>2012-11-08 14:33:43 -0500
committerTheodore Ts'o <tytso@mit.edu>2012-11-08 14:33:43 -0500
commitb5645534ce84c21695c2f82d4d4f67cf2a67229a (patch)
treec91238383a6348c46640071e33c2fe6a899ce55f /include/trace
parentd71c1ae23aa3e7822715c63dc242de6d73002541 (diff)
ext4: print 'flags' in ext4_ext_handle_uninitialized_extents
In trace_ext4_ext_handle_uninitialized_extents we don't care about the value of map->m_flags because this value is probably 0, and we prefer to get the value of flags because we can know how to handle this extent in this function. Reviewed-by: Lukas Czerner <lczerner@redhat.com> Signed-off-by: Zheng Liu <wenqing.lz@taobao.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'include/trace')
-rw-r--r--include/trace/events/ext4.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/trace/events/ext4.h b/include/trace/events/ext4.h
index d49b285385e8..25914e3002c7 100644
--- a/include/trace/events/ext4.h
+++ b/include/trace/events/ext4.h
@@ -1680,10 +1680,10 @@ DEFINE_EVENT(ext4__trim, ext4_trim_all_free,
1680); 1680);
1681 1681
1682TRACE_EVENT(ext4_ext_handle_uninitialized_extents, 1682TRACE_EVENT(ext4_ext_handle_uninitialized_extents,
1683 TP_PROTO(struct inode *inode, struct ext4_map_blocks *map, 1683 TP_PROTO(struct inode *inode, struct ext4_map_blocks *map, int flags,
1684 unsigned int allocated, ext4_fsblk_t newblock), 1684 unsigned int allocated, ext4_fsblk_t newblock),
1685 1685
1686 TP_ARGS(inode, map, allocated, newblock), 1686 TP_ARGS(inode, map, flags, allocated, newblock),
1687 1687
1688 TP_STRUCT__entry( 1688 TP_STRUCT__entry(
1689 __field( dev_t, dev ) 1689 __field( dev_t, dev )
@@ -1699,7 +1699,7 @@ TRACE_EVENT(ext4_ext_handle_uninitialized_extents,
1699 TP_fast_assign( 1699 TP_fast_assign(
1700 __entry->dev = inode->i_sb->s_dev; 1700 __entry->dev = inode->i_sb->s_dev;
1701 __entry->ino = inode->i_ino; 1701 __entry->ino = inode->i_ino;
1702 __entry->flags = map->m_flags; 1702 __entry->flags = flags;
1703 __entry->lblk = map->m_lblk; 1703 __entry->lblk = map->m_lblk;
1704 __entry->pblk = map->m_pblk; 1704 __entry->pblk = map->m_pblk;
1705 __entry->len = map->m_len; 1705 __entry->len = map->m_len;
@@ -1707,7 +1707,7 @@ TRACE_EVENT(ext4_ext_handle_uninitialized_extents,
1707 __entry->newblk = newblock; 1707 __entry->newblk = newblock;
1708 ), 1708 ),
1709 1709
1710 TP_printk("dev %d,%d ino %lu m_lblk %u m_pblk %llu m_len %u flags %d" 1710 TP_printk("dev %d,%d ino %lu m_lblk %u m_pblk %llu m_len %u flags %x "
1711 "allocated %d newblock %llu", 1711 "allocated %d newblock %llu",
1712 MAJOR(__entry->dev), MINOR(__entry->dev), 1712 MAJOR(__entry->dev), MINOR(__entry->dev),
1713 (unsigned long) __entry->ino, 1713 (unsigned long) __entry->ino,