diff options
Diffstat (limited to 'fs/mpage.c')
-rw-r--r-- | fs/mpage.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/fs/mpage.c b/fs/mpage.c index 5c65d8942692..f37bb01a333b 100644 --- a/fs/mpage.c +++ b/fs/mpage.c | |||
@@ -79,11 +79,17 @@ static struct bio *mpage_bio_submit(int rw, struct bio *bio) | |||
79 | struct page *first_page = bio->bi_io_vec[0].bv_page; | 79 | struct page *first_page = bio->bi_io_vec[0].bv_page; |
80 | 80 | ||
81 | if (first_page != NULL) { | 81 | if (first_page != NULL) { |
82 | char *path, pathbuf[MAX_TRACE_PATHBUF_LEN]; | ||
83 | |||
84 | path = android_fstrace_get_pathname(pathbuf, | ||
85 | MAX_TRACE_PATHBUF_LEN, | ||
86 | first_page->mapping->host); | ||
82 | trace_android_fs_dataread_start( | 87 | trace_android_fs_dataread_start( |
83 | first_page->mapping->host, | 88 | first_page->mapping->host, |
84 | page_offset(first_page), | 89 | page_offset(first_page), |
85 | bio->bi_iter.bi_size, | 90 | bio->bi_iter.bi_size, |
86 | current->pid, | 91 | current->pid, |
92 | path, | ||
87 | current->comm); | 93 | current->comm); |
88 | } | 94 | } |
89 | } | 95 | } |
@@ -141,7 +147,7 @@ map_buffer_to_page(struct page *page, struct buffer_head *bh, int page_block) | |||
141 | SetPageUptodate(page); | 147 | SetPageUptodate(page); |
142 | return; | 148 | return; |
143 | } | 149 | } |
144 | create_empty_buffers(page, 1 << inode->i_blkbits, 0); | 150 | create_empty_buffers(page, i_blocksize(inode), 0); |
145 | } | 151 | } |
146 | head = page_buffers(page); | 152 | head = page_buffers(page); |
147 | page_bh = head; | 153 | page_bh = head; |