From: Sam Ravnborg <sam@ravnborg.org>
To: David Howells <dhowells@redhat.com>
Cc: axboe@kernel.dk, linux-fsdevel@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH 04/18] [PATCH] BLOCK: Separate the bounce buffering code from the highmem code [try #4]
Date: Fri, 25 Aug 2006 22:04:55 +0200 [thread overview]
Message-ID: <20060825200455.GA2629@uranus.ravnborg.org> (raw)
In-Reply-To: <20060825193707.11384.97372.stgit@warthog.cambridge.redhat.com>
On Fri, Aug 25, 2006 at 08:37:07PM +0100, David Howells wrote:
> From: David Howells <dhowells@redhat.com>
>
> Move the bounce buffer code from mm/highmem.c to mm/bounce.c so that it can be
> more easily disabled when the block layer is disabled.
>
> !!!NOTE!!! There may be a bug in this code: Should init_emergency_pool() be
> contingent on CONFIG_HIGHMEM?
>
> Signed-Off-By: David Howells <dhowells@redhat.com>
> ---
>
> mm/Makefile | 4 +
> mm/bounce.c | 302 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> mm/highmem.c | 281 ------------------------------------------------------
> 3 files changed, 305 insertions(+), 282 deletions(-)
>
> diff --git a/mm/Makefile b/mm/Makefile
> index 9dd824c..63637f0 100644
> --- a/mm/Makefile
> +++ b/mm/Makefile
> @@ -12,6 +12,9 @@ obj-y := bootmem.o filemap.o mempool.o
> readahead.o swap.o truncate.o vmscan.o \
> prio_tree.o util.o mmzone.o vmstat.o $(mmu-y)
>
> +ifeq ($(CONFIG_MMU),y)
> +obj-y += bounce.o
> +endif
CONFIG_MMU is a bool so you can do this much more elegant:
obj-$(CONFIG_MMU) += bounce.o
Sam
next prev parent reply other threads:[~2006-08-25 20:00 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-08-25 19:36 [PATCH 00/18] BLOCK: Permit block layer to be disabled [try #4] David Howells
2006-08-25 19:37 ` [PATCH 01/18] [PATCH] BLOCK: Move functions out of buffer code " David Howells
2006-08-25 19:37 ` [PATCH 02/18] [PATCH] BLOCK: Remove duplicate declaration of exit_io_context() " David Howells
2006-08-25 19:37 ` [PATCH 03/18] [PATCH] BLOCK: Stop fallback_migrate_page() from using page_has_buffers() " David Howells
2006-08-25 19:37 ` [PATCH 04/18] [PATCH] BLOCK: Separate the bounce buffering code from the highmem code " David Howells
2006-08-25 20:04 ` Sam Ravnborg [this message]
2006-08-25 20:18 ` David Howells
2006-08-28 11:52 ` Arnd Bergmann
2006-08-29 13:47 ` David Howells
2006-08-29 13:59 ` Arnd Bergmann
2006-08-25 19:37 ` [PATCH 05/18] [PATCH] BLOCK: Don't call block_sync_page() from AFS " David Howells
2006-08-27 21:21 ` Chris Wedgwood
2006-08-29 9:00 ` David Howells
2006-08-29 11:57 ` Christoph Hellwig
2006-08-29 12:25 ` David Howells
2006-08-25 19:37 ` [PATCH 06/18] [PATCH] BLOCK: Move extern declarations out of fs/*.c into header files " David Howells
2006-08-25 20:07 ` Sam Ravnborg
2006-08-25 20:20 ` David Howells
2006-08-25 19:37 ` [PATCH 07/18] [PATCH] BLOCK: Remove dependence on existence of blockdev_superblock " David Howells
2006-08-25 19:37 ` [PATCH 08/18] [PATCH] BLOCK: Dissociate generic_writepages() from mpage stuff " David Howells
2006-08-25 19:37 ` [PATCH 09/18] [PATCH] BLOCK: Move __invalidate_device() to block_dev.c " David Howells
2006-08-25 19:37 ` [PATCH 10/18] [PATCH] BLOCK: Move the loop device ioctl compat stuff to the loop driver " David Howells
2006-08-25 19:37 ` [PATCH 11/18] [PATCH] BLOCK: Move common FS-specific ioctls to linux/fs.h " David Howells
2006-08-25 19:37 ` [PATCH 12/18] [PATCH] BLOCK: Move the ReiserFS device ioctl compat stuff to the ReiserFS driver " David Howells
2006-08-25 19:37 ` [PATCH 13/18] [PATCH] BLOCK: Move the Ext2 device ioctl compat stuff to the Ext2 " David Howells
2006-08-25 19:37 ` [PATCH 14/18] [PATCH] BLOCK: Move the Ext3 device ioctl compat stuff to the Ext3 " David Howells
2006-08-25 19:37 ` [PATCH 15/18] [PATCH] BLOCK: Move the msdos device ioctl compat stuff to the msdos " David Howells
2006-08-25 19:37 ` [PATCH 16/18] [PATCH] BLOCK: Remove no-longer necessary linux/mpage.h inclusions " David Howells
2006-08-25 19:37 ` [PATCH 17/18] [PATCH] BLOCK: Remove no-longer necessary linux/buffer_head.h " David Howells
2006-08-25 19:37 ` [PATCH 18/18] [PATCH] BLOCK: Make it possible to disable the block layer " David Howells
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=20060825200455.GA2629@uranus.ravnborg.org \
--to=sam@ravnborg.org \
--cc=axboe@kernel.dk \
--cc=dhowells@redhat.com \
--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