From: Christoph Hellwig <hch@infradead.org>
To: Alexander Zarochentsev <zam@namesys.com>
Cc: Christoph Hellwig <hch@infradead.org>,
Andrew Morton <akpm@osdl.org>,
reiserfs-dev@namesys.com, linux-kernel@vger.kernel.org
Subject: Re: partial reiser4 review comments
Date: Wed, 9 Aug 2006 09:59:46 +0100 [thread overview]
Message-ID: <20060809085946.GA6177@infradead.org> (raw)
In-Reply-To: <200608061838.35004.zam@namesys.com>
On Sun, Aug 06, 2006 at 06:38:34PM +0400, Alexander Zarochentsev wrote:
> > > - reiser4_readpages() shouldn't need to clean up the remaining
> > > pages on *pages. read_cache_pages() does that now.
> >
> > Without looking at the code I remember someone from the Namesys
> > people told me they could use plain mpage_readpages now. Anything
> > still blocking using that function?
>
> reiser4 tries to reduce number of tree lookups. better, if there would
> be one tree lookup for one readpages call.
Right now mpage_redpages does one get_block per extent. I think it's
pretty messy do do one block allocator call that can return multiple
extents because that leads into a lot of complexity for a rather
questionable gain.(XFS on IRIX does that)
>
> what we are currently doing in a not-yet-submitted patch (below), i
> don't see how it can be done by mpage_readpages.
>
> +struct uf_readpages_context {
> + lock_handle lh;
> + coord_t coord;
> +};
I must admit that standalone code snipplet doesn't really tell me a lot.
Do you mean the possibility to pass around a filesystem-defined structure
to multiple allocator calls? I'm pretty sure can add that, I though it
would be useful multiple times in the past but always found ways around
it.
> BTW, read_cache_page() and mpage_readpages are similar, I guess the
> second can be rewritten using the first one, no?
Do you mean read_cache_page() or read_cache_pages() ?
(Yeah, it really bad that we have two functions sounding the same but doing
thing quite differently..)
read_cache_pages() could probably be folded into mpages_readpages by allowing
it to give an additional readpage callback similar to how mpage_writepages
can either do real direct to bio or be used as an interator over writepages
calls.
read_cache_page() is quite different from read_cache_pages() and
mpages_readpages in that it is synchronous and waits for the read to complete
before returning.
next prev parent reply other threads:[~2006-08-09 8:59 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-08-03 7:17 partial reiser4 review comments Andrew Morton
2006-08-03 14:26 ` Christoph Hellwig
2006-08-06 14:38 ` Alexander Zarochentsev
2006-08-09 8:59 ` Christoph Hellwig [this message]
2006-08-09 9:18 ` Hans Reiser
2006-08-10 18:31 ` Nate Diller
2006-08-11 17:55 ` Hans Reiser
2006-08-11 23:02 ` Nate Diller
2006-08-03 20:11 ` Alexander Zarochentsev
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=20060809085946.GA6177@infradead.org \
--to=hch@infradead.org \
--cc=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
--cc=reiserfs-dev@namesys.com \
--cc=zam@namesys.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