[2.6 patch] mm/page-writeback.c: remove an unused function

From: Adrian Bunk (bunk_at_stusta.de)
Date: 01/31/05

  • Next message: Adrian Bunk: "[2.6 patch] generic_serial.h: kill incorrect gs_debug reference"
    Date:	Mon, 31 Jan 2005 13:17:18 +0100
    To: Andrew Morton <akpm@osdl.org>
    
    

    This patch removes an unused global function.

    Signed-off-by: Adrian Bunk <bunk@stusta.de>

    ---
     mm/page-writeback.c        |   24 ------------------------
     1 files changed, 24 deletions(-)
    --- linux-2.6.10-rc2-mm4-full/mm/page-writeback.c.old	2004-12-12 03:52:39.000000000 +0100
    +++ linux-2.6.10-rc2-mm4-full/mm/page-writeback.c	2004-12-12 03:52:47.000000000 +0100
    @@ -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);
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at  http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at  http://www.tux.org/lkml/
    

  • Next message: Adrian Bunk: "[2.6 patch] generic_serial.h: kill incorrect gs_debug reference"