From: Adrian Bunk <bunk@stusta.de>
To: Andrew Morton <akpm@osdl.org>
Cc: linux-kernel@vger.kernel.org
Subject: [2.6 patch] mm/page-writeback.c: remove an unused function
Date: Fri, 21 Jan 2005 11:07:56 +0100 [thread overview]
Message-ID: <20050121100756.GD3209@stusta.de> (raw)
This patch removes an unused global function.
Signed-off-by: Adrian Bunk <bunk@stusta.de>
---
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
--- linux-2.6.10-rc2-mm4-full/include/linux/page-flags.h.old 2004-12-12 03:52:14.000000000 +0100
+++ linux-2.6.10-rc2-mm4-full/include/linux/page-flags.h 2004-12-12 03:52:27.000000000 +0100
@@ -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);
--- 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);
next reply other threads:[~2005-01-21 10:11 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-01-21 10:07 Adrian Bunk [this message]
-- strict thread matches above, loose matches on Subject: below --
2005-01-31 12:17 [2.6 patch] mm/page-writeback.c: remove an unused function Adrian Bunk
2004-12-12 19:52 Adrian Bunk
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20050121100756.GD3209@stusta.de \
--to=bunk@stusta.de \
--cc=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.