From: Andrew Morton <akpm@zip.com.au>
To: Linus Torvalds <torvalds@transmeta.com>
Cc: lkml <linux-kernel@vger.kernel.org>
Subject: [patch 10/16] give swapper_space a set_page_dirty a_op
Date: Sat, 01 Jun 2002 01:42:48 -0700 [thread overview]
Message-ID: <3CF88908.179B10BF@zip.com.au> (raw)
Give swapper_space a ->set_page_dirty() address_space_operation.
So swapcache pages do not need special-casing in
set_page_dirty_buffers().
=====================================
--- 2.5.19/mm/swap_state.c~swap-set_page_dirty Sat Jun 1 01:18:11 2002
+++ 2.5.19-akpm/mm/swap_state.c Sat Jun 1 01:18:11 2002
@@ -48,9 +48,10 @@ static int swap_vm_writeback(struct page
}
static struct address_space_operations swap_aops = {
- vm_writeback: swap_vm_writeback,
- writepage: swap_writepage,
- sync_page: block_sync_page,
+ vm_writeback: swap_vm_writeback,
+ writepage: swap_writepage,
+ sync_page: block_sync_page,
+ set_page_dirty: __set_page_dirty_nobuffers,
};
/*
--- 2.5.19/mm/page-writeback.c~swap-set_page_dirty Sat Jun 1 01:18:11 2002
+++ 2.5.19-akpm/mm/page-writeback.c Sat Jun 1 01:18:11 2002
@@ -497,7 +497,7 @@ int __set_page_dirty_buffers(struct page
spin_lock(&mapping->private_lock);
- if (page_has_buffers(page) && !PageSwapCache(page)) {
+ if (page_has_buffers(page)) {
struct buffer_head *head = page_buffers(page);
struct buffer_head *bh = head;
-
next reply other threads:[~2002-06-01 8:41 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-06-01 8:42 Andrew Morton [this message]
2002-06-01 20:14 ` [patch 10/16] give swapper_space a set_page_dirty a_op Jeff Garzik
2002-06-01 22:38 ` Andrew Morton
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=3CF88908.179B10BF@zip.com.au \
--to=akpm@zip.com.au \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@transmeta.com \
/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.