aboutsummaryrefslogtreecommitdiffstats
path: root/fs/f2fs
diff options
context:
space:
mode:
authorChao Yu <chao2.yu@samsung.com>2013-11-20 03:40:10 -0500
committerJaegeuk Kim <jaegeuk.kim@samsung.com>2013-12-22 20:18:02 -0500
commit87b8872d5b4a8f9f61123ab913aff4f6047d8b53 (patch)
treec04facd80ec93152d2c74c10bb9e27e9bd190020 /fs/f2fs
parent61ae45c8803262a96f3af200489344f339992291 (diff)
f2fs: adds a tracepoint for submit_read_page
This patch adds a tracepoint for submit_read_page. Signed-off-by: Chao Yu <chao2.yu@samsung.com> [Jaegeuk Kim: integrate tracepoints of f2fs_submit_read(_write)_page] Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
Diffstat (limited to 'fs/f2fs')
-rw-r--r--fs/f2fs/data.c1
-rw-r--r--fs/f2fs/segment.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/fs/f2fs/data.c b/fs/f2fs/data.c
index ce3cbd92585e..cdb342eeb421 100644
--- a/fs/f2fs/data.c
+++ b/fs/f2fs/data.c
@@ -462,6 +462,7 @@ alloc_new:
462 io->last_block_in_bio = blk_addr; 462 io->last_block_in_bio = blk_addr;
463 463
464 mutex_unlock(&io->io_mutex); 464 mutex_unlock(&io->io_mutex);
465 trace_f2fs_submit_read_page(page, rw, META, blk_addr);
465} 466}
466 467
467/* 468/*
diff --git a/fs/f2fs/segment.c b/fs/f2fs/segment.c
index 38c1a89f54cc..d42426dc3706 100644
--- a/fs/f2fs/segment.c
+++ b/fs/f2fs/segment.c
@@ -923,7 +923,7 @@ retry:
923 io->last_block_in_bio = blk_addr; 923 io->last_block_in_bio = blk_addr;
924 924
925 mutex_unlock(&io->io_mutex); 925 mutex_unlock(&io->io_mutex);
926 trace_f2fs_submit_write_page(page, blk_addr, type); 926 trace_f2fs_submit_write_page(page, WRITE, type, blk_addr);
927} 927}
928 928
929void f2fs_wait_on_page_writeback(struct page *page, 929void f2fs_wait_on_page_writeback(struct page *page,