diff options
| author | Andrew Morton <akpm@osdl.org> | 2004-04-11 23:11:08 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2004-04-11 23:11:08 -0700 |
| commit | 40c8348ec03fa2c525e13ca6ee54279735563ee4 (patch) | |
| tree | c4c5f40d3c9ca4774322018a441248be89ded478 /include/linux | |
| parent | 8ece6262c5fef1b935a944f5d16965ff7dd5d1cc (diff) | |
[PATCH] tag writeback pages as such in their radix tree
Arrange for under-writeback pages to be marked thus in their pagecache radix
tree.
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/page-flags.h | 8 |
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 */ |
