summaryrefslogtreecommitdiff
path: root/fs/f2fs/data.c
diff options
context:
space:
mode:
authorChao Yu <chao2.yu@samsung.com>2015-10-12 09:02:26 (GMT)
committerJaegeuk Kim <jaegeuk@kernel.org>2015-10-12 21:00:34 (GMT)
commitb8c2940048adf4b2fcc5ae738f2bd4821ebf6a8a (patch)
treee72060649cd483751b38400284693b3295ac42ac /fs/f2fs/data.c
parenta56c7c6fb3c60857c1335bcb8b914e6f65655486 (diff)
downloadlinux-b8c2940048adf4b2fcc5ae738f2bd4821ebf6a8a.tar.xz
f2fs: add a tracepoint for f2fs_read_data_pages
This patch adds a tracepoint for f2fs_read_data_pages to trace when pages are readahead by VFS. Signed-off-by: Chao Yu <chao2.yu@samsung.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/data.c')
-rw-r--r--fs/f2fs/data.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/f2fs/data.c b/fs/f2fs/data.c
index d4f1c74..2285376 100644
--- a/fs/f2fs/data.c
+++ b/fs/f2fs/data.c
@@ -1032,6 +1032,9 @@ static int f2fs_read_data_pages(struct file *file,
struct list_head *pages, unsigned nr_pages)
{
struct inode *inode = file->f_mapping->host;
+ struct page *page = list_entry(pages->prev, struct page, lru);
+
+ trace_f2fs_readpages(inode, page, nr_pages);
/* If the file has inline data, skip readpages */
if (f2fs_has_inline_data(inode))