lkml.org 
[lkml]   [2009]   [Dec]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] mm/page-writeback: export account_page_dirtied()
Date
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


\
 
 \ /
  Last update: 2009-12-08 23:11    [W:0.023 / U:0.204 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site