Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 206301
b: refs/heads/master
c: e5880d7
h: refs/heads/master
i:
  206299: 967db36
v: v3
  • Loading branch information
Theodore Ts'o committed Jul 27, 2010
1 parent 37a0097 commit 8d97dce
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 11 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: 89eeddf03327e19cfcbb18efa98e5470e2f5c563
refs/heads/master: e5880d76aea443b04e07da19830da0f6f7494eef
4 changes: 2 additions & 2 deletions trunk/fs/ext4/mballoc.c
Original file line number Diff line number Diff line change
Expand Up @@ -3575,7 +3575,7 @@ ext4_mb_release_inode_pa(struct ext4_buddy *e4b, struct buffer_head *bitmap_bh,
trace_ext4_mballoc_discard(ac);
}

trace_ext4_mb_release_inode_pa(ac, pa, grp_blk_start + bit,
trace_ext4_mb_release_inode_pa(sb, ac, pa, grp_blk_start + bit,
next - bit);
mb_free_blocks(pa->pa_inode, e4b, bit, next - bit);
bit = next + 1;
Expand Down Expand Up @@ -3606,7 +3606,7 @@ ext4_mb_release_group_pa(struct ext4_buddy *e4b,
ext4_group_t group;
ext4_grpblk_t bit;

trace_ext4_mb_release_group_pa(ac, pa);
trace_ext4_mb_release_group_pa(sb, ac, pa);
BUG_ON(pa->pa_deleted == 0);
ext4_get_group_no_and_offset(sb, pa->pa_pstart, &group, &bit);
BUG_ON(group != e4b->bd_group && pa->pa_len != 0);
Expand Down
20 changes: 12 additions & 8 deletions trunk/include/trace/events/ext4.h
Original file line number Diff line number Diff line change
Expand Up @@ -395,11 +395,12 @@ DEFINE_EVENT(ext4__mb_new_pa, ext4_mb_new_group_pa,
);

TRACE_EVENT(ext4_mb_release_inode_pa,
TP_PROTO(struct ext4_allocation_context *ac,
TP_PROTO(struct super_block *sb,
struct ext4_allocation_context *ac,
struct ext4_prealloc_space *pa,
unsigned long long block, unsigned int count),

TP_ARGS(ac, pa, block, count),
TP_ARGS(sb, ac, pa, block, count),

TP_STRUCT__entry(
__field( dev_t, dev )
Expand All @@ -410,8 +411,9 @@ TRACE_EVENT(ext4_mb_release_inode_pa,
),

TP_fast_assign(
__entry->dev = ac->ac_sb->s_dev;
__entry->ino = ac->ac_inode->i_ino;
__entry->dev = sb->s_dev;
__entry->ino = (ac && ac->ac_inode) ?
ac->ac_inode->i_ino : 0;
__entry->block = block;
__entry->count = count;
),
Expand All @@ -422,10 +424,11 @@ TRACE_EVENT(ext4_mb_release_inode_pa,
);

TRACE_EVENT(ext4_mb_release_group_pa,
TP_PROTO(struct ext4_allocation_context *ac,
TP_PROTO(struct super_block *sb,
struct ext4_allocation_context *ac,
struct ext4_prealloc_space *pa),

TP_ARGS(ac, pa),
TP_ARGS(sb, ac, pa),

TP_STRUCT__entry(
__field( dev_t, dev )
Expand All @@ -436,8 +439,9 @@ TRACE_EVENT(ext4_mb_release_group_pa,
),

TP_fast_assign(
__entry->dev = ac->ac_sb->s_dev;
__entry->ino = ac->ac_inode->i_ino;
__entry->dev = sb->s_dev;
__entry->ino = (ac && ac->ac_inode) ?
ac->ac_inode->i_ino : 0;
__entry->pa_pstart = pa->pa_pstart;
__entry->pa_len = pa->pa_len;
),
Expand Down

0 comments on commit 8d97dce

Please sign in to comment.