summaryrefslogtreecommitdiffstats
path: root/fs/f2fs
diff options
context:
space:
mode:
authorChao Yu <chao2.yu@samsung.com>2014-05-06 16:53:08 +0800
committerJaegeuk Kim <jaegeuk.kim@samsung.com>2014-05-07 10:21:59 +0900
commitc20e89cde669799eff62bf8c00ca9a4819c4e11f (patch)
tree9fba31d66ff9bff75ddb72438d3ac5d2e6a7d207 /fs/f2fs
parente57484343898094bb8f72a2aa1a50929d27aa027 (diff)
downloadop-kernel-dev-c20e89cde669799eff62bf8c00ca9a4819c4e11f.zip
op-kernel-dev-c20e89cde669799eff62bf8c00ca9a4819c4e11f.tar.gz
f2fs: add a tracepoint for f2fs_read_data_page
This patch adds a tracepoint for f2fs_read_data_page to trace when page is readed by user. 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/data.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/f2fs/data.c b/fs/f2fs/data.c
index 21bfafa..8c250a5 100644
--- a/fs/f2fs/data.c
+++ b/fs/f2fs/data.c
@@ -713,6 +713,8 @@ static int f2fs_read_data_page(struct file *file, struct page *page)
struct inode *inode = page->mapping->host;
int ret;
+ trace_f2fs_readpage(page, DATA);
+
/* If the file has inline data, try to read it directlly */
if (f2fs_has_inline_data(inode))
ret = f2fs_read_inline_data(inode, page);
OpenPOWER on IntegriCloud