Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 344848
b: refs/heads/master
c: 19b303d
h: refs/heads/master
v: v3
  • Loading branch information
Zheng Liu authored and Theodore Ts'o committed Nov 8, 2012
1 parent 58178d0 commit cd73ec0
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 19 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: b5645534ce84c21695c2f82d4d4f67cf2a67229a
refs/heads/master: 19b303d8b5a0e8150a4697c01ca03e75a0a17469
3 changes: 1 addition & 2 deletions trunk/fs/ext4/extents.c
Original file line number Diff line number Diff line change
Expand Up @@ -4284,8 +4284,7 @@ int ext4_ext_map_blocks(handle_t *handle, struct inode *inode,
kfree(path);
}

trace_ext4_ext_map_blocks_exit(inode, map->m_lblk,
newblock, map->m_len, err ? err : allocated);
trace_ext4_ext_map_blocks_exit(inode, map, err ? err : allocated);

return err ? err : allocated;
}
Expand Down
3 changes: 1 addition & 2 deletions trunk/fs/ext4/indirect.c
Original file line number Diff line number Diff line change
Expand Up @@ -755,8 +755,7 @@ int ext4_ind_map_blocks(handle_t *handle, struct inode *inode,
partial--;
}
out:
trace_ext4_ind_map_blocks_exit(inode, map->m_lblk,
map->m_pblk, map->m_len, err);
trace_ext4_ind_map_blocks_exit(inode, map, err);
return err;
}

Expand Down
27 changes: 13 additions & 14 deletions trunk/include/trace/events/ext4.h
Original file line number Diff line number Diff line change
Expand Up @@ -1519,48 +1519,47 @@ DEFINE_EVENT(ext4__map_blocks_enter, ext4_ind_map_blocks_enter,
);

DECLARE_EVENT_CLASS(ext4__map_blocks_exit,
TP_PROTO(struct inode *inode, ext4_lblk_t lblk,
ext4_fsblk_t pblk, unsigned int len, int ret),
TP_PROTO(struct inode *inode, struct ext4_map_blocks *map, int ret),

TP_ARGS(inode, lblk, pblk, len, ret),
TP_ARGS(inode, map, ret),

TP_STRUCT__entry(
__field( dev_t, dev )
__field( ino_t, ino )
__field( ext4_fsblk_t, pblk )
__field( ext4_lblk_t, lblk )
__field( unsigned int, len )
__field( unsigned int, flags )
__field( int, ret )
),

TP_fast_assign(
__entry->dev = inode->i_sb->s_dev;
__entry->ino = inode->i_ino;
__entry->pblk = pblk;
__entry->lblk = lblk;
__entry->len = len;
__entry->pblk = map->m_pblk;
__entry->lblk = map->m_lblk;
__entry->len = map->m_len;
__entry->flags = map->m_flags;
__entry->ret = ret;
),

TP_printk("dev %d,%d ino %lu lblk %u pblk %llu len %u ret %d",
TP_printk("dev %d,%d ino %lu lblk %u pblk %llu len %u flags %x ret %d",
MAJOR(__entry->dev), MINOR(__entry->dev),
(unsigned long) __entry->ino,
__entry->lblk, __entry->pblk,
__entry->len, __entry->ret)
__entry->len, __entry->flags, __entry->ret)
);

DEFINE_EVENT(ext4__map_blocks_exit, ext4_ext_map_blocks_exit,
TP_PROTO(struct inode *inode, ext4_lblk_t lblk,
ext4_fsblk_t pblk, unsigned len, int ret),
TP_PROTO(struct inode *inode, struct ext4_map_blocks *map, int ret),

TP_ARGS(inode, lblk, pblk, len, ret)
TP_ARGS(inode, map, ret)
);

DEFINE_EVENT(ext4__map_blocks_exit, ext4_ind_map_blocks_exit,
TP_PROTO(struct inode *inode, ext4_lblk_t lblk,
ext4_fsblk_t pblk, unsigned len, int ret),
TP_PROTO(struct inode *inode, struct ext4_map_blocks *map, int ret),

TP_ARGS(inode, lblk, pblk, len, ret)
TP_ARGS(inode, map, ret)
);

TRACE_EVENT(ext4_ext_load_extent,
Expand Down

0 comments on commit cd73ec0

Please sign in to comment.