linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] mm/page-writeback: export account_page_dirtied()
@ 2009-12-08 21:41 Yehuda Sadeh
  0 siblings, 0 replies; only message in thread
From: Yehuda Sadeh @ 2009-12-08 21:41 UTC (permalink / raw)
  To: linux-mm; +Cc: Yehuda Sadeh, linux-kernel, sage

The ceph filesystem implementation of set_page_dirty is based on
__set_page_dirty_nobuffers(), and needs to use account_page_dirtied(). It
uses its own implementation as it needs to set the page private bit and
value under the tree lock. This exports it using EXPORT_SYMBOL_GPL.

Signed-off-by: Yehuda Sadeh <yehuda@hq.newdream.net>
---
 mm/page-writeback.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/mm/page-writeback.c b/mm/page-writeback.c
index a3b1409..4f8412a 100644
--- a/mm/page-writeback.c
+++ b/mm/page-writeback.c
@@ -1095,6 +1095,7 @@ void account_page_dirtied(struct page *page, struct address_space *mapping)
 		task_io_account_write(PAGE_CACHE_SIZE);
 	}
 }
+EXPORT_SYMBOL_GPL(account_page_dirtied);
 
 /*
  * For address_spaces which do not use buffers.  Just tag the page as dirty in
-- 
1.5.6.5


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2009-12-08 22:07 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-12-08 21:41 [PATCH] mm/page-writeback: export account_page_dirtied() Yehuda Sadeh

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).