X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=fs%2Fext4%2Finline.c;h=6fbcdf23df90173c4c079500936313aae32671cf;hb=5076221ec585603197b3473fda04f35161179a93;hp=0dcd33f626376a39ce9ecd262f61635c95a7971f;hpb=c5feba4358ed485b91c2f535d703758aa6d8872f;p=sagit-ice-cold%2Fkernel_xiaomi_msm8998.git diff --git a/fs/ext4/inline.c b/fs/ext4/inline.c index 0dcd33f62637..6fbcdf23df90 100644 --- a/fs/ext4/inline.c +++ b/fs/ext4/inline.c @@ -18,6 +18,7 @@ #include "ext4.h" #include "xattr.h" #include "truncate.h" +#include #define EXT4_XATTR_SYSTEM_DATA "data" #define EXT4_MIN_INLINE_DATA_SIZE ((sizeof(__le32) * EXT4_N_BLOCKS)) @@ -502,6 +503,17 @@ int ext4_readpage_inline(struct inode *inode, struct page *page) return -EAGAIN; } + if (trace_android_fs_dataread_start_enabled()) { + char *path, pathbuf[MAX_TRACE_PATHBUF_LEN]; + + path = android_fstrace_get_pathname(pathbuf, + MAX_TRACE_PATHBUF_LEN, + inode); + trace_android_fs_dataread_start(inode, page_offset(page), + PAGE_SIZE, current->pid, + path, current->comm); + } + /* * Current inline data can only exist in the 1st page, * So for all the other pages, just set them uptodate. @@ -513,6 +525,8 @@ int ext4_readpage_inline(struct inode *inode, struct page *page) SetPageUptodate(page); } + trace_android_fs_dataread_end(inode, page_offset(page), PAGE_SIZE); + up_read(&EXT4_I(inode)->xattr_sem); unlock_page(page);