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 <[email protected]>
Signed-off-by: Jaegeuk Kim <[email protected]>
This commit is contained in:
Chao Yu 2014-05-06 16:53:08 +08:00 • committed by Jaegeuk Kim
commit c20e89cde6
2 changed files with 15 additions and 2 deletions

View file

@ -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);