summaryrefslogtreecommitdiffstats
path: root/fs/f2fs
diff options
context:
space:
mode:
authorChao Yu2013-11-20 09:40:10 +0100
committerJaegeuk Kim2013-12-23 02:18:02 +0100
commit87b8872d5b4a8f9f61123ab913aff4f6047d8b53 (patch)
treec04facd80ec93152d2c74c10bb9e27e9bd190020 /fs/f2fs
parentf2fs: simplify IS_DATASEG and IS_NODESEG macro (diff)
downloadkernel-qcow2-linux-87b8872d5b4a8f9f61123ab913aff4f6047d8b53.tar.gz
kernel-qcow2-linux-87b8872d5b4a8f9f61123ab913aff4f6047d8b53.tar.xz
kernel-qcow2-linux-87b8872d5b4a8f9f61123ab913aff4f6047d8b53.zip
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:
io->last_block_in_bio = blk_addr;
mutex_unlock(&io->io_mutex);
+ trace_f2fs_submit_read_page(page, rw, META, blk_addr);
}
/*
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:
io->last_block_in_bio = blk_addr;
mutex_unlock(&io->io_mutex);
- trace_f2fs_submit_write_page(page, blk_addr, type);
+ trace_f2fs_submit_write_page(page, WRITE, type, blk_addr);
}
void f2fs_wait_on_page_writeback(struct page *page,