summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/page-flags.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/include/linux/page-flags.h b/include/linux/page-flags.h
index 9f4fb3da00d9..bd6ddb279c55 100644
--- a/include/linux/page-flags.h
+++ b/include/linux/page-flags.h
@@ -312,12 +312,18 @@ extern struct address_space swapper_space;
struct page; /* forward declaration */
int test_clear_page_dirty(struct page *page);
+int __clear_page_dirty(struct page *page);
+int test_clear_page_writeback(struct page *page);
+int test_set_page_writeback(struct page *page);
static inline void clear_page_dirty(struct page *page)
{
test_clear_page_dirty(page);
}
-int __clear_page_dirty(struct page *page);
+static inline void set_page_writeback(struct page *page)
+{
+ test_set_page_writeback(page);
+}
#endif /* PAGE_FLAGS_H */