From: Nick Piggin <nickpiggin@yahoo.com.au>
To: Andrew Morton <akpm@osdl.org>
Cc: Hugh Dickins <hugh@veritas.com>,
Benjamin Herrenschmidt <benh@kernel.crashing.org>,
linux-kernel <linux-kernel@vger.kernel.org>
Subject: [patch 4/6] mm: remove atomic
Date: Tue, 26 Jul 2005 18:19:39 +1000 [thread overview]
Message-ID: <42E5F21B.8090900@yahoo.com.au> (raw)
In-Reply-To: <42E5F1BF.7060604@yahoo.com.au>
[-- Attachment #1: Type: text/plain, Size: 153 bytes --]
4/6
OK, these first 4 patches don't have much to do with removing
PageReserved, but I put them in this series because that's how
I have them arranged.
[-- Attachment #2: mm-remove-atomic-bitop.patch --]
[-- Type: text/plain, Size: 1223 bytes --]
This bitop does not need to be atomic because it is performed when
there will be no references to the page (ie. the page is being freed).
Signed-off-by: Nick Piggin <npiggin@suse.de>
Index: linux-2.6/mm/page_alloc.c
===================================================================
--- linux-2.6.orig/mm/page_alloc.c
+++ linux-2.6/mm/page_alloc.c
@@ -329,7 +329,7 @@ static inline void free_pages_check(cons
1 << PG_writeback )))
bad_page(function, page);
if (PageDirty(page))
- ClearPageDirty(page);
+ __ClearPageDirty(page);
}
/*
Index: linux-2.6/include/linux/page-flags.h
===================================================================
--- linux-2.6.orig/include/linux/page-flags.h
+++ linux-2.6/include/linux/page-flags.h
@@ -194,6 +194,7 @@ extern void __mod_page_state(unsigned lo
#define SetPageDirty(page) set_bit(PG_dirty, &(page)->flags)
#define TestSetPageDirty(page) test_and_set_bit(PG_dirty, &(page)->flags)
#define ClearPageDirty(page) clear_bit(PG_dirty, &(page)->flags)
+#define __ClearPageDirty(page) __clear_bit(PG_dirty, &(page)->flags)
#define TestClearPageDirty(page) test_and_clear_bit(PG_dirty, &(page)->flags)
#define SetPageLRU(page) set_bit(PG_lru, &(page)->flags)
next prev parent reply other threads:[~2005-07-26 8:23 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-07-26 8:15 [patch 0/6] remove PageReserved Nick Piggin
2005-07-26 8:16 ` [patch 1/6] mm: comment rmap Nick Piggin
2005-07-26 8:17 ` [patch 2/6] mm: micro-optimise rmap Nick Piggin
2005-07-26 8:18 ` [patch 3/6] mm: cleanup rmap Nick Piggin
2005-07-26 8:19 ` Nick Piggin [this message]
2005-07-26 8:20 ` [patch 5/6] mm: remap ZERO_PAGE mappings Nick Piggin
2005-07-26 8:20 ` [patch 6/6] mm: core remove PageReserved Nick Piggin
2005-07-26 8:56 ` [patch 6/6] mm: core remove PageReserved (take 2) Nick Piggin
2005-07-27 11:30 ` [patch 2/6] mm: micro-optimise rmap Alexander Nyberg
2005-07-28 0:53 ` Nick Piggin
2005-07-26 8:21 ` [patch 0/6] remove PageReserved Nick Piggin
2005-07-26 13:09 ` Kumar Gala
2005-07-27 0:22 ` Nick Piggin
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=42E5F21B.8090900@yahoo.com.au \
--to=nickpiggin@yahoo.com.au \
--cc=akpm@osdl.org \
--cc=benh@kernel.crashing.org \
--cc=hugh@veritas.com \
--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.