ext4: fixed tracepoints cleanup
Subsystems (2)
PATCH 1/1 ext4: fixed tracepoints cleanup
While creating fixed tracepoints for ext3, basically by porting them from ext4, I found a lot of useless retyping, wrong type usage, useless variable passing and other inconsistencies in the ext4 fixed tracepoint code.
This patch cleans the fixed tracepoint code for ext4 and also simplify some of them.
Signed-off-by Lukas Czerner <[email protected]>
--- fs/ext4/inode.c | 2 +- fs/ext4/mballoc.c | 6 +- include/trace/events/ext4.h | 179 ++++++++++++++++++------------------------- 3 files changed, 80 insertions(+), 107 deletions(-)
fs/ext4/inode.c +1 -1
@@ -2634,7 +2634,7 @@ static int ext4_writepage(struct page *page,struct buffer_head *page_bufs =NULL ;struct inode *inode = page->mapping->host; -trace_ext4_writepage (inode, page); +trace_ext4_writepage (page); size =i_size_read (inode);if (page->index == size >>PAGE_CACHE_SHIFT ) len = size & ~PAGE_CACHE_MASK ;
fs/ext4/mballoc.c +3 -3
@@ -3578,8 +3578,8 @@ ext4_mb_release_inode_pa(struct ext4_buddy *e4b, struct buffer_head *bitmap_bh, free += next - bit;trace_ext4_mballoc_discard (sb,NULL , group, bit, next - bit); -trace_ext4_mb_release_inode_pa (sb, pa->pa_inode, pa, - grp_blk_start + bit, next - bit); +trace_ext4_mb_release_inode_pa (pa, grp_blk_start + bit, + next - bit);mb_free_blocks (pa->pa_inode, e4b, bit, next - bit); bit = next +1 ; }
@@ -3608,7 +3608,7 @@ ext4_mb_release_group_pa(struct ext4_buddy *e4b,ext4_group_t group;ext4_grpblk_t bit; -trace_ext4_mb_release_group_pa (sb, pa); +trace_ext4_mb_release_group_pa (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 );
include/trace/events/ext4.h +76 -103
442 lines not on this page · raw message
Signature · 1 line
1.7.4.4
Ted Ts'o
maintainerQuoted 9 lines · Lukas Czerner
While creating fixed tracepoints for ext3, basically by porting them from ext4, I found a lot of useless retyping, wrong type usage, useless variable passing and other inconsistencies in the ext4 fixed tracepoint code.
This patch cleans the fixed tracepoint code for ext4 and also simplify some of them.
Signed-off-by Lukas Czerner <[email protected]>
Added to the ext4 tree, thanks.
- Ted