mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
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:
parent
e574843438
commit
c20e89cde6
2 changed files with 15 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue