* [2.6 patch] mm/page-writeback.c: remove an unused function
@ 2004-12-12 19:52 Adrian Bunk
0 siblings, 0 replies; 3+ messages in thread
From: Adrian Bunk @ 2004-12-12 19:52 UTC (permalink / raw)
To: linux-kernel
The patch below removes an unused global function.
diffstat output:
include/linux/page-flags.h | 1 -
mm/page-writeback.c | 24 ------------------------
2 files changed, 25 deletions(-)
Signed-off-by: Adrian Bunk <bunk@stusta.de>
--- 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);
^ permalink raw reply [flat|nested] 3+ messages in thread
* [2.6 patch] mm/page-writeback.c: remove an unused function
@ 2005-01-31 12:17 Adrian Bunk
0 siblings, 0 replies; 3+ messages in thread
From: Adrian Bunk @ 2005-01-31 12:17 UTC (permalink / raw)
To: Andrew Morton; +Cc: linux-kernel
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);
^ permalink raw reply [flat|nested] 3+ messages in thread
* [2.6 patch] mm/page-writeback.c: remove an unused function
@ 2005-01-21 10:07 Adrian Bunk
0 siblings, 0 replies; 3+ messages in thread
From: Adrian Bunk @ 2005-01-21 10:07 UTC (permalink / raw)
To: Andrew Morton; +Cc: linux-kernel
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);
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2005-01-31 12:17 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-12-12 19:52 [2.6 patch] mm/page-writeback.c: remove an unused function Adrian Bunk
2005-01-21 10:07 Adrian Bunk
2005-01-31 12:17 Adrian Bunk
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).