linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Jared Hulbert <jaredeh@gmail.com>
To: Christoph Hellwig <hch@infradead.org>
Cc: linux-mm@kvack.org
Subject: Re: VM_XIP Request for comments
Date: Fri, 28 Oct 2005 00:59:08 -0700	[thread overview]
Message-ID: <6934efce0510280059i4c7483areee8432b62533cab@mail.gmail.com> (raw)
In-Reply-To: <20051027190933.GC16211@infradead.org>

On 10/27/05, Christoph Hellwig <hch@infradead.org> wrote:
> On Tue, Oct 25, 2005 at 03:42:25PM -0700, Jared Hulbert wrote:
> > What would it take to get this first patch in the kernel?
> >
> > The reason for the first patch is in the second patch, which I will
> > try to get into the kernel list.  With this mmap()'ed files can be
> > used directly from flash when possible and COW's it when necessary..
>
> Can't you use the XIP infrastructure we already have?  Grep for
> CONFIG_XIP and CONFIG_EXT2_FS_XIP

I can't find CONFIG_XIP.  But I assume you are talking about
filemap_xip.c and Documentation/filesystems/xip.txt.

Hmm.

I don't know. The code and discussions about it looked very big-iron
DSCC specific but now on second pass it was meant to more generic.  If
I can learn this infrastructure then maybe this will work.

So I'm supposed to create a function in the target fs that gets
plugged into get_xip_page().  Then I call that function to create an
proper XIP'ed page in my mmap() and fread() calls.  I could use the
first arg of get_xip_page() to pass in the start address of the cramfs
volume and the second the offset of the page in the file I want to
map.

Is that about right?

This is a lot more overhead than the current XIP Linear CRAMFS patches
but it would allow me choose a page-by-page compression/XIP scheme
rather than the file-by-file compression/XIP currently used in cramfs.
 Hmm.

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

      reply	other threads:[~2005-10-28  7:59 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-10-25 22:42 Jared Hulbert
2005-10-27 17:39 ` Jared Hulbert
2005-10-27 19:09 ` Christoph Hellwig
2005-10-28  7:59   ` Jared Hulbert [this message]

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=6934efce0510280059i4c7483areee8432b62533cab@mail.gmail.com \
    --to=jaredeh@gmail.com \
    --cc=hch@infradead.org \
    --cc=linux-mm@kvack.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