From: Christoph Hellwig <hch@lst.de>
To: McPacino <mcpacino@gmail.com>
Cc: Christoph Hellwig <hch@lst.de>,
Daniel Phillips <phillips@phunq.net>,
linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org,
dm-devel@redhat.com, Andrew Morton <akpm@linux-foundation.org>,
Alexander Viro <viro@zeniv.linux.org.uk>,
Nick Piggin <npiggin@kernel.dk>
Subject: Re: introduce dm-snap-mv
Date: Fri, 8 Oct 2010 11:24:27 +0200 [thread overview]
Message-ID: <20101008092427.GA5426@lst.de> (raw)
In-Reply-To: <AANLkTim9KFuP1_mrUUsMOEspxkfA=SZW2dmTX4WJbfep@mail.gmail.com>
On Fri, Oct 08, 2010 at 05:14:27PM +0800, McPacino wrote:
> Hi Christoph,
>
> I have to take care the cache problem If using the bio directly.
> BHs can be released by kernel when necessary.
>
> Is there any existing code using bio to read/write metadata
> blocks? How do they handle the timing freeing bios? I really
> wish to learn something form it.
If you actually need caching just use the pagecache, e.g.
read_mapping_page to read in your data. That completely abstracts
away the underlying block size.
next prev parent reply other threads:[~2010-10-08 9:24 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-06 8:31 introduce dm-snap-mv Cong Meng
2010-10-06 8:31 ` Cong Meng
2010-10-06 8:31 ` Cong Meng
2010-10-07 21:31 ` Daniel Phillips
2010-10-07 21:31 ` Daniel Phillips
2010-10-08 8:22 ` Christoph Hellwig
2010-10-08 9:14 ` McPacino
2010-10-08 9:24 ` Christoph Hellwig [this message]
2010-10-08 9:28 ` McPacino
2010-10-08 13:22 ` Daniel Phillips
2010-10-13 16:45 ` McPacino
2010-10-13 16:45 ` McPacino
2010-10-08 9:01 ` McPacino
2010-10-19 19:58 ` [dm-devel] " Mikulas Patocka
2010-11-06 3:24 ` Daniel Phillips
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=20101008092427.GA5426@lst.de \
--to=hch@lst.de \
--cc=akpm@linux-foundation.org \
--cc=dm-devel@redhat.com \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mcpacino@gmail.com \
--cc=npiggin@kernel.dk \
--cc=phillips@phunq.net \
--cc=viro@zeniv.linux.org.uk \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.