From: Jeff Dike <jdike@addtoit.com>
To: LKML <linux-kernel@vger.kernel.org>,
linux-fsdevel@vger.kernel.org, linux-arch@vger.kernel.org
Subject: [RFC PATCH 2/2] Add pagemap.h include to swap.h
Date: Fri, 26 Oct 2007 15:25:49 -0400 [thread overview]
Message-ID: <20071026192549.GA9219@c2.user-mode-linux.org> (raw)
Include linux/pagemap.h in linux/swap.h and remove the comment saying
that it's not possible.
---
include/linux/swap.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
Index: linux-2.6.17/include/linux/swap.h
===================================================================
--- linux-2.6.17.orig/include/linux/swap.h 2007-10-24 10:05:09.000000000 -0400
+++ linux-2.6.17/include/linux/swap.h 2007-10-25 22:59:29.000000000 -0400
@@ -6,6 +6,7 @@
#include <linux/mmzone.h>
#include <linux/list.h>
#include <linux/sched.h>
+#include <linux/pagemap.h>
#include <asm/atomic.h>
#include <asm/page.h>
@@ -282,8 +283,7 @@ static inline void disable_swap_token(vo
#define si_swapinfo(val) \
do { (val)->freeswap = (val)->totalswap = 0; } while (0)
-/* only sparc can not include linux/pagemap.h in this file
- * so leave page_cache_release and release_pages undeclared... */
+
#define free_page_and_swap_cache(page) \
page_cache_release(page)
#define free_pages_and_swap_cache(pages, nr) \
reply other threads:[~2007-10-26 19:25 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20071026192549.GA9219@c2.user-mode-linux.org \
--to=jdike@addtoit.com \
--cc=linux-arch@vger.kernel.org \
--cc=linux-fsdevel@vger.kernel.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 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).