From: Andreas Dilger <adilger@clusterfs.com>
To: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Cc: michaelc@cs.wisc.edu, hch@infradead.org,
linux-fsdevel@vger.kernel.org, ext2-devel@lists.sourceforge.net,
open-iscsi@googlegroups.com
Subject: Re: [PATCH] ext3: avoid sending down non-refcounted pages
Date: Thu, 8 Dec 2005 03:18:33 -0700 [thread overview]
Message-ID: <20051208101833.GM14509@schatzie.adilger.int> (raw)
In-Reply-To: <20051208180900T.fujita.tomonori@lab.ntt.co.jp>
On Dec 08, 2005 18:09 +0900, FUJITA Tomonori wrote:
> If file systems don't send down non-refcounted pages, it makes life
> much easier for open-iscsi because it uses tcp_sendpage.
>
> Christoph said that he'll take care of xfs. This patch makes ext3 use
> normal pages instead of kmalloc'ed pages.
>
> --- a/fs/jbd/transaction.c
> +++ b/fs/jbd/transaction.c
> - frozen_buffer = jbd_kmalloc(jh2bh(jh)->b_size,
> - GFP_NOFS);
> + frozen_buffer =
> + (char *) jbd_get_free_page(GFP_NOFS);
> @@ -877,7 +878,7 @@ int journal_get_undo_access(handle_t *ha
> - committed_data = jbd_kmalloc(jh2bh(jh)->b_size, GFP_NOFS);
> + committed_data = (char *) jbd_get_free_page(GFP_NOFS);
What happens on 1kB or 2kB block filesystems (i.e. b_size != PAGE_SIZE)?
This will allocate a whole page for each block (which may be considerable
overhead on e.g. a 64kB PAGE_SIZE ia64 or PPC system).
Cheers, Andreas
--
Andreas Dilger
Principal Software Engineer
Cluster File Systems, Inc.
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
next prev parent reply other threads:[~2005-12-08 10:18 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-12-08 9:09 [PATCH] ext3: avoid sending down non-refcounted pages FUJITA Tomonori
2005-12-08 10:18 ` Andreas Dilger [this message]
2005-12-08 12:39 ` [Ext2-devel] " FUJITA Tomonori
2005-12-08 13:42 ` allowed pages in the block later, was " Christoph Hellwig
2005-12-08 13:58 ` Pekka Enberg
2005-12-12 17:27 ` allowed pages in the block later, was " Christoph Hellwig
2005-12-08 18:18 ` allowed pages in the block later, was Re: [Ext2-devel] " Mike Christie
2005-12-08 18:22 ` Mike Christie
2005-12-08 19:20 ` Pekka Enberg
2005-12-11 0:47 ` Andrew Morton
2005-12-11 8:44 ` allowed pages in the block later, was " Arjan van de Ven
2005-12-12 17:25 ` allowed pages in the block later, was Re: [Ext2-devel] " Christoph Hellwig
2005-12-12 20:12 ` 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=20051208101833.GM14509@schatzie.adilger.int \
--to=adilger@clusterfs.com \
--cc=ext2-devel@lists.sourceforge.net \
--cc=fujita.tomonori@lab.ntt.co.jp \
--cc=hch@infradead.org \
--cc=linux-fsdevel@vger.kernel.org \
--cc=michaelc@cs.wisc.edu \
--cc=open-iscsi@googlegroups.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 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).