summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Morton <akpm@digeo.com>2002-09-26 07:51:52 -0700
committerJeff Garzik <jgarzik@mandrakesoft.com>2002-09-26 07:51:52 -0700
commit14fc589bb07155396ac0a19f4e081f4c6c2552ef (patch)
treeb4c7b559cbcfe47a64a77e5abedf8a377c65e530
parent5bb7978a1cf7e115ac5728d8f6bfd665a644d2d9 (diff)
[PATCH] export test_clear_page_dirty() to modules.
- XFS has started to use clear_page_dirty(), so we should export test_clear_page_dirty() to modules. This function is ued by the inlined clear_page_dirty(). It marks a page clean and updates the global dirty memory accounting. Anyone who cleans pagecache pages should use this, so the export makes sense. Can't implement aops->writepages() without it, really. - __mark_inode_dirty is no longer called under mapping->private_lock. Update comment.
-rw-r--r--mm/filemap.c4
-rw-r--r--mm/page-writeback.c1
2 files changed, 3 insertions, 2 deletions
diff --git a/mm/filemap.c b/mm/filemap.c
index f45168a04974..066083f7ce63 100644
--- a/mm/filemap.c
+++ b/mm/filemap.c
@@ -60,8 +60,8 @@
* ->swap_list_lock
* ->swap_device_lock (exclusive_swap_page, others)
* ->mapping->page_lock
- * ->inode_lock (__mark_inode_dirty)
- * ->sb_lock (fs/fs-writeback.c)
+ * ->inode_lock
+ * ->sb_lock (fs/fs-writeback.c)
*/
/*
diff --git a/mm/page-writeback.c b/mm/page-writeback.c
index 8a1aee7777d6..b67090c6f678 100644
--- a/mm/page-writeback.c
+++ b/mm/page-writeback.c
@@ -601,3 +601,4 @@ int test_clear_page_dirty(struct page *page)
}
return 0;
}
+EXPORT_SYMBOL(test_clear_page_dirty);