summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/linux/pagemap.h10
-rw-r--r--include/trace/events/writeback.h16
2 files changed, 16 insertions, 10 deletions
diff --git a/include/linux/pagemap.h b/include/linux/pagemap.h
index 2e8438a1216a..112f15bb5907 100644
--- a/include/linux/pagemap.h
+++ b/include/linux/pagemap.h
@@ -540,15 +540,7 @@ static inline int wait_on_page_locked_killable(struct page *page)
540 540
541extern void put_and_wait_on_page_locked(struct page *page); 541extern void put_and_wait_on_page_locked(struct page *page);
542 542
543/* 543void wait_on_page_writeback(struct page *page);
544 * Wait for a page to complete writeback
545 */
546static inline void wait_on_page_writeback(struct page *page)
547{
548 if (PageWriteback(page))
549 wait_on_page_bit(page, PG_writeback);
550}
551
552extern void end_page_writeback(struct page *page); 544extern void end_page_writeback(struct page *page);
553void wait_for_stable_page(struct page *page); 545void wait_for_stable_page(struct page *page);
554 546
diff --git a/include/trace/events/writeback.h b/include/trace/events/writeback.h
index 32db72c7c055..aa7f3aeac740 100644
--- a/include/trace/events/writeback.h
+++ b/include/trace/events/writeback.h
@@ -53,7 +53,7 @@ WB_WORK_REASON
53 53
54struct wb_writeback_work; 54struct wb_writeback_work;
55 55
56TRACE_EVENT(writeback_dirty_page, 56DECLARE_EVENT_CLASS(writeback_page_template,
57 57
58 TP_PROTO(struct page *page, struct address_space *mapping), 58 TP_PROTO(struct page *page, struct address_space *mapping),
59 59
@@ -79,6 +79,20 @@ TRACE_EVENT(writeback_dirty_page,
79 ) 79 )
80); 80);
81 81
82DEFINE_EVENT(writeback_page_template, writeback_dirty_page,
83
84 TP_PROTO(struct page *page, struct address_space *mapping),
85
86 TP_ARGS(page, mapping)
87);
88
89DEFINE_EVENT(writeback_page_template, wait_on_page_writeback,
90
91 TP_PROTO(struct page *page, struct address_space *mapping),
92
93 TP_ARGS(page, mapping)
94);
95
82DECLARE_EVENT_CLASS(writeback_dirty_inode_template, 96DECLARE_EVENT_CLASS(writeback_dirty_inode_template,
83 97
84 TP_PROTO(struct inode *inode, int flags), 98 TP_PROTO(struct inode *inode, int flags),