diff options
author | Edward Shishkin <edward.shishkin@gmail.com> | 2009-03-31 18:19:39 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-04-01 11:59:12 -0400 |
commit | e3a7cca1ef4c1af9b0acef9bd66eff6582a737b5 (patch) | |
tree | 717097ec82ce0de55e44b2fe3e35fa041e5169b2 /include | |
parent | bd2f6199cf9af472aeefa1b642c9f504f19e6008 (diff) |
vfs: add/use account_page_dirtied()
Add a helper function account_page_dirtied(). Use that from two
callsites. reiser4 adds a function which adds a third callsite.
Signed-off-by: Edward Shishkin<edward.shishkin@gmail.com>
Cc: Nick Piggin <nickpiggin@yahoo.com.au>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/mm.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/mm.h b/include/linux/mm.h index b1ea37fc7a24..2223f8dfa568 100644 --- a/include/linux/mm.h +++ b/include/linux/mm.h | |||
@@ -834,6 +834,7 @@ int __set_page_dirty_nobuffers(struct page *page); | |||
834 | int __set_page_dirty_no_writeback(struct page *page); | 834 | int __set_page_dirty_no_writeback(struct page *page); |
835 | int redirty_page_for_writepage(struct writeback_control *wbc, | 835 | int redirty_page_for_writepage(struct writeback_control *wbc, |
836 | struct page *page); | 836 | struct page *page); |
837 | void account_page_dirtied(struct page *page, struct address_space *mapping); | ||
837 | int set_page_dirty(struct page *page); | 838 | int set_page_dirty(struct page *page); |
838 | int set_page_dirty_lock(struct page *page); | 839 | int set_page_dirty_lock(struct page *page); |
839 | int clear_page_dirty_for_io(struct page *page); | 840 | int clear_page_dirty_for_io(struct page *page); |