Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 262093
b: refs/heads/master
c: 1270639
h: refs/heads/master
i:
  262091: c2f8a73
v: v3
  • Loading branch information
Theodore Ts'o committed Jul 11, 2011
1 parent 2081978 commit a1fb533
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 4862fd6047ed02e2726667c54d35f538eecc56aa
refs/heads/master: 12706394bcaa48e3d5e19c97d7b4e5683ebb12fb
1 change: 1 addition & 0 deletions trunk/fs/ext4/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,7 @@ handle_t *ext4_journal_start_sb(struct super_block *sb, int nblocks)
journal_t *journal;
handle_t *handle;

trace_ext4_journal_start(sb, nblocks, _RET_IP_);
if (sb->s_flags & MS_RDONLY)
return ERR_PTR(-EROFS);

Expand Down
22 changes: 22 additions & 0 deletions trunk/include/trace/events/ext4.h
Original file line number Diff line number Diff line change
Expand Up @@ -1520,6 +1520,28 @@ TRACE_EVENT(ext4_load_inode,
(unsigned long) __entry->ino)
);

TRACE_EVENT(ext4_journal_start,
TP_PROTO(struct super_block *sb, int nblocks, unsigned long IP),

TP_ARGS(sb, nblocks, IP),

TP_STRUCT__entry(
__field( dev_t, dev )
__field( int, nblocks )
__field(unsigned long, ip )
),

TP_fast_assign(
__entry->dev = sb->s_dev;
__entry->nblocks = nblocks;
__entry->ip = IP;
),

TP_printk("dev %d,%d nblocks %d caller %pF",
MAJOR(__entry->dev), MINOR(__entry->dev),
__entry->nblocks, (void *)__entry->ip)
);

#endif /* _TRACE_EXT4_H */

/* This part must be outside protection */
Expand Down

0 comments on commit a1fb533

Please sign in to comment.