Skip to contentSkip to conversation

mm/page-writeback.c: remove an unused function

PATCH New Adrian Bunk 1 participant 1 message Jan 21, 2005

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mm/page-writeback.c: remove an unused function

This patch removes an unused global function.

---

diffstat output:

 include/linux/page-flags.h |    1 -
 mm/page-writeback.c        |   24 ------------------------
 2 files changed, 25 deletions(-)

this patch was already sent on:
- 12 Dec 2004

include/linux/page-flags.h renamed from include/linux/page-flags.h.old +0 -1
@@ -310,7 +310,6 @@
 struct page;	/* forward declaration */
 
 int test_clear_page_dirty(struct page *page);
-int __clear_page_dirty(struct page *page);
 int test_clear_page_writeback(struct page *page);
 int test_set_page_writeback(struct page *page);
 
mm/page-writeback.c renamed from mm/page-writeback.c.old +0 -24
@@ -741,30 +741,6 @@
 }
 EXPORT_SYMBOL(clear_page_dirty_for_io);
 
-/*
- * Clear a page's dirty flag while ignoring dirty memory accounting
- */
-int __clear_page_dirty(struct page *page)
-{
-	struct address_space *mapping = page_mapping(page);
-
-	if (mapping) {
-		unsigned long flags;
-
-		write_lock_irqsave(&mapping->tree_lock, flags);
-		if (TestClearPageDirty(page)) {
-			radix_tree_tag_clear(&mapping->page_tree,
-						page_index(page),
-						PAGECACHE_TAG_DIRTY);
-			write_unlock_irqrestore(&mapping->tree_lock, flags);
-			return 1;
-		}
-		write_unlock_irqrestore(&mapping->tree_lock, flags);
-		return 0;
-	}
-	return TestClearPageDirty(page);
-}
-
 int test_clear_page_writeback(struct page *page)
 {
 	struct address_space *mapping = page_mapping(page);