diff options
author | Namjae Jeon <namjae.jeon@samsung.com> | 2013-04-23 04:51:43 -0400 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk.kim@samsung.com> | 2013-04-23 05:15:17 -0400 |
commit | 6ec178dac6768204a6edf70f4a53d40b691c12b4 (patch) | |
tree | 88a7676da49821341d3c193ddc9c8cce73db31a8 /fs/f2fs | |
parent | c01e285324793a86c2c90c8451ed6feb04b3d310 (diff) |
f2fs: add tracepoints for write page operations
Add tracepoints to debug the various page write operation
like data pages, meta pages.
Signed-off-by: Namjae Jeon <namjae.jeon@samsung.com>
Signed-off-by: Pankaj Kumar <pankaj.km@samsung.com>
Acked-by: Steven Rostedt <rostedt@goodmis.org>
[Jaegeuk: remove unnecessary tracepoints]
Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
Diffstat (limited to 'fs/f2fs')
-rw-r--r-- | fs/f2fs/segment.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/fs/f2fs/segment.c b/fs/f2fs/segment.c index 7c67ec2b63c0..0a652848a9f8 100644 --- a/fs/f2fs/segment.c +++ b/fs/f2fs/segment.c | |||
@@ -18,6 +18,7 @@ | |||
18 | #include "f2fs.h" | 18 | #include "f2fs.h" |
19 | #include "segment.h" | 19 | #include "segment.h" |
20 | #include "node.h" | 20 | #include "node.h" |
21 | #include <trace/events/f2fs.h> | ||
21 | 22 | ||
22 | /* | 23 | /* |
23 | * This function balances dirty node and dentry pages. | 24 | * This function balances dirty node and dentry pages. |
@@ -691,6 +692,9 @@ static void do_submit_bio(struct f2fs_sb_info *sbi, | |||
691 | struct bio_private *p = sbi->bio[btype]->bi_private; | 692 | struct bio_private *p = sbi->bio[btype]->bi_private; |
692 | p->sbi = sbi; | 693 | p->sbi = sbi; |
693 | sbi->bio[btype]->bi_end_io = f2fs_end_io_write; | 694 | sbi->bio[btype]->bi_end_io = f2fs_end_io_write; |
695 | |||
696 | trace_f2fs_do_submit_bio(sbi->sb, btype, sync, sbi->bio[btype]); | ||
697 | |||
694 | if (type == META_FLUSH) { | 698 | if (type == META_FLUSH) { |
695 | DECLARE_COMPLETION_ONSTACK(wait); | 699 | DECLARE_COMPLETION_ONSTACK(wait); |
696 | p->is_sync = true; | 700 | p->is_sync = true; |
@@ -745,6 +749,7 @@ alloc_new: | |||
745 | sbi->last_block_in_bio[type] = blk_addr; | 749 | sbi->last_block_in_bio[type] = blk_addr; |
746 | 750 | ||
747 | up_write(&sbi->bio_sem); | 751 | up_write(&sbi->bio_sem); |
752 | trace_f2fs_submit_write_page(page, blk_addr, type); | ||
748 | } | 753 | } |
749 | 754 | ||
750 | static bool __has_curseg_space(struct f2fs_sb_info *sbi, int type) | 755 | static bool __has_curseg_space(struct f2fs_sb_info *sbi, int type) |