Commit 14fc589b authored by Andrew Morton's avatar Andrew Morton Committed by Jeff Garzik

[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.
parent 5bb7978a
...@@ -60,8 +60,8 @@ ...@@ -60,8 +60,8 @@
* ->swap_list_lock * ->swap_list_lock
* ->swap_device_lock (exclusive_swap_page, others) * ->swap_device_lock (exclusive_swap_page, others)
* ->mapping->page_lock * ->mapping->page_lock
* ->inode_lock (__mark_inode_dirty) * ->inode_lock
* ->sb_lock (fs/fs-writeback.c) * ->sb_lock (fs/fs-writeback.c)
*/ */
/* /*
......
...@@ -601,3 +601,4 @@ int test_clear_page_dirty(struct page *page) ...@@ -601,3 +601,4 @@ int test_clear_page_dirty(struct page *page)
} }
return 0; return 0;
} }
EXPORT_SYMBOL(test_clear_page_dirty);
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment