aboutsummaryrefslogtreecommitdiffstats
path: root/fs/f2fs
diff options
context:
space:
mode:
authorChao Yu <chao2.yu@samsung.com>2014-05-06 04:48:26 -0400
committerJaegeuk Kim <jaegeuk.kim@samsung.com>2014-05-06 21:21:59 -0400
commitecda0de3430455378f1c02523bf3ad71d91d613a (patch)
tree070ac2a1739edd7daa504bf286ffb353b3349b71 /fs/f2fs
parentdfb2bf38bf89e15a65f9996566b2945921388a2f (diff)
f2fs: add a tracepoint for f2fs_write_{meta,node,data}_page
This patch adds a tracepoint for f2fs_write_{meta,node,data}_page to trace when page is writting out. Signed-off-by: Chao Yu <chao2.yu@samsung.com> Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
Diffstat (limited to 'fs/f2fs')
-rw-r--r--fs/f2fs/checkpoint.c2
-rw-r--r--fs/f2fs/data.c2
-rw-r--r--fs/f2fs/node.c2
3 files changed, 6 insertions, 0 deletions
diff --git a/fs/f2fs/checkpoint.c b/fs/f2fs/checkpoint.c
index 4206f1664be5..c95d62281d7e 100644
--- a/fs/f2fs/checkpoint.c
+++ b/fs/f2fs/checkpoint.c
@@ -157,6 +157,8 @@ static int f2fs_write_meta_page(struct page *page,
157 struct inode *inode = page->mapping->host; 157 struct inode *inode = page->mapping->host;
158 struct f2fs_sb_info *sbi = F2FS_SB(inode->i_sb); 158 struct f2fs_sb_info *sbi = F2FS_SB(inode->i_sb);
159 159
160 trace_f2fs_writepage(page, META);
161
160 if (unlikely(sbi->por_doing)) 162 if (unlikely(sbi->por_doing))
161 goto redirty_out; 163 goto redirty_out;
162 if (wbc->for_reclaim) 164 if (wbc->for_reclaim)
diff --git a/fs/f2fs/data.c b/fs/f2fs/data.c
index ea58fb698ac6..b997d552880e 100644
--- a/fs/f2fs/data.c
+++ b/fs/f2fs/data.c
@@ -788,6 +788,8 @@ static int f2fs_write_data_page(struct page *page,
788 .rw = (wbc->sync_mode == WB_SYNC_ALL) ? WRITE_SYNC : WRITE, 788 .rw = (wbc->sync_mode == WB_SYNC_ALL) ? WRITE_SYNC : WRITE,
789 }; 789 };
790 790
791 trace_f2fs_writepage(page, DATA);
792
791 if (page->index < end_index) 793 if (page->index < end_index)
792 goto write; 794 goto write;
793 795
diff --git a/fs/f2fs/node.c b/fs/f2fs/node.c
index 059aaf5dda2b..49bdddbcadea 100644
--- a/fs/f2fs/node.c
+++ b/fs/f2fs/node.c
@@ -1199,6 +1199,8 @@ static int f2fs_write_node_page(struct page *page,
1199 .rw = (wbc->sync_mode == WB_SYNC_ALL) ? WRITE_SYNC : WRITE, 1199 .rw = (wbc->sync_mode == WB_SYNC_ALL) ? WRITE_SYNC : WRITE,
1200 }; 1200 };
1201 1201
1202 trace_f2fs_writepage(page, NODE);
1203
1202 if (unlikely(sbi->por_doing)) 1204 if (unlikely(sbi->por_doing))
1203 goto redirty_out; 1205 goto redirty_out;
1204 1206